X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fwindowplacement.py;h=81d260e8188a65bef75f01aaeb2bdaf4b4caf469;hb=3e889e72f500cf523edf2b8e51964a8af63c70e1;hp=127cd2ad1203cc70b0990e32c75977f761f07330;hpb=5168a8add5ed46f74b615ecc60738c1113606734;p=chaz%2Fopenbox 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() +