From 12108e16e166034cd1840627502280d9a1ab0b9e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 10 Feb 2003 06:50:19 +0000 Subject: keep track of struts for each desktop --- scripts/windowplacement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/windowplacement.py') 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() + -- cgit v1.2.3