]> Dogcows Code - chaz/openbox/blobdiff - scripts/windowplacement.py
use otk objects in the ob scripts by importing otk
[chaz/openbox] / scripts / windowplacement.py
index 127cd2ad1203cc70b0990e32c75977f761f07330..81d260e8188a65bef75f01aaeb2bdaf4b4caf469 100644 (file)
@@ -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() + 
This page took 0.023453 seconds and 4 git commands to generate.