X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fwindowplacement.py;h=a319c7b1b78c5c10e45c7e434b3b2ec8ce8b4d28;hb=4ef15148365c223b8e810611a10dc27dc5fba355;hp=e7ba187ded2741ddb230748e5ce71b899227a55a;hpb=f1c0beee3e785800a5cb7766afc0a40e50adfb03;p=chaz%2Fopenbox diff --git a/scripts/windowplacement.py b/scripts/windowplacement.py index e7ba187d..a319c7b1 100644 --- a/scripts/windowplacement.py +++ b/scripts/windowplacement.py @@ -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() +