summaryrefslogtreecommitdiff
path: root/scripts/windowplacement.py
diff options
context:
space:
mode:
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() +