From 5face4c6f35172761367f63ac0b6eaf62d84e532 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 27 Jan 2003 13:42:41 +0000 Subject: use otk objects in the ob scripts by importing otk --- scripts/windowplacement.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/windowplacement.py') diff --git a/scripts/windowplacement.py b/scripts/windowplacement.py index 127cd2ad..81d260e8 100644 --- a/scripts/windowplacement.py +++ b/scripts/windowplacement.py @@ -3,6 +3,7 @@ ### ob.EventAction.PlaceWindow event. ### ############################################################################ +import otk import ob import random @@ -13,6 +14,8 @@ def random(data): client_area = data.client.area() frame_size = data.client.frame.size() screen_area = ob.openbox.screen(data.screen).area() + print str(screen_area.x()) + " " + str(screen_area.y()) + " " + \ + str(screen_area.width()) + " " + str(screen_area.height()) width = screen_area.width() - (client_area.width() + frame_size.left + frame_size.right) height = screen_area.height() - (client_area.height() + -- cgit v1.2.3