X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fwindowplacement.py;fp=scripts%2Fwindowplacement.py;h=a319c7b1b78c5c10e45c7e434b3b2ec8ce8b4d28;hb=12108e16e166034cd1840627502280d9a1ab0b9e;hp=e7ba187ded2741ddb230748e5ce71b899227a55a;hpb=a5ea4b0480c9daeb860bf3adbfc755c84d2e082d;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() +