]> Dogcows Code - chaz/openbox/blobdiff - scripts/windowplacement.py
keep track of struts for each desktop
[chaz/openbox] / scripts / windowplacement.py
index e7ba187ded2741ddb230748e5ce71b899227a55a..a319c7b1b78c5c10e45c7e434b3b2ec8ce8b4d28 100644 (file)
@@ -25,7 +25,7 @@ def random(data):
     if data.client.positionRequested(): return
     client_area = data.client.area()
     frame_size = data.client.frame.size()
-    screen_area = ob.openbox.screen(data.screen).area()
+    screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
     width = screen_area.width() - (client_area.width() +
                                    frame_size.left + frame_size.right)
     height = screen_area.height() - (client_area.height() + 
@@ -44,7 +44,7 @@ def cascade(data):
     if data.client.positionRequested(): return
     client_area = data.client.area()
     frame_size = data.client.frame.size()
-    screen_area = ob.openbox.screen(data.screen).area()
+    screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
     width = screen_area.width() - (client_area.width() +
                                    frame_size.left + frame_size.right)
     height = screen_area.height() - (client_area.height() + 
This page took 0.023621 seconds and 4 git commands to generate.