diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-10 06:50:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-10 06:50:19 +0000 |
| commit | 12108e16e166034cd1840627502280d9a1ab0b9e (patch) | |
| tree | 54abc88e46822812c4eff78ac007ef7a5d7ddbd2 /scripts/windowplacement.py | |
| parent | a5ea4b0480c9daeb860bf3adbfc755c84d2e082d (diff) | |
keep track of struts for each desktop
Diffstat (limited to 'scripts/windowplacement.py')
| -rw-r--r-- | scripts/windowplacement.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() + |
