summaryrefslogtreecommitdiff
path: root/scripts/windowplacement.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-27 13:42:41 +0000
committerDana Jansens <danakj@orodu.net>2003-01-27 13:42:41 +0000
commit5face4c6f35172761367f63ac0b6eaf62d84e532 (patch)
tree061851b68cc6e2d645b5966f76fa4ad0d300af92 /scripts/windowplacement.py
parent5168a8add5ed46f74b615ecc60738c1113606734 (diff)
use otk objects in the ob scripts by importing otk
Diffstat (limited to 'scripts/windowplacement.py')
-rw-r--r--scripts/windowplacement.py3
1 files changed, 3 insertions, 0 deletions
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() +