summaryrefslogtreecommitdiff
path: root/scripts/windowplacement.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-12 00:39:15 +0000
committerDana Jansens <danakj@orodu.net>2003-02-12 00:39:15 +0000
commit5160662248c3c78ab7dae7717c0fe3c602810695 (patch)
tree22bf1415e3bec19b3b0281aa996d558b83894dc4 /scripts/windowplacement.py
parent9faca110acaffe21fd9f14cef807bc7aeb289a2a (diff)
use the frame's area not the client's
Diffstat (limited to 'scripts/windowplacement.py')
-rw-r--r--scripts/windowplacement.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/windowplacement.py b/scripts/windowplacement.py
index a319c7b1..e718c4ee 100644
--- a/scripts/windowplacement.py
+++ b/scripts/windowplacement.py
@@ -23,7 +23,7 @@ def random(data):
"""Place windows randomly around the screen."""
if not data.client: return
if data.client.positionRequested(): return
- client_area = data.client.area()
+ client_area = data.client.frame.area()
frame_size = data.client.frame.size()
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
width = screen_area.width() - (client_area.width() +
@@ -42,7 +42,7 @@ def cascade(data):
"""Place windows in a cascading order from top-left to bottom-right."""
if not data.client: return
if data.client.positionRequested(): return
- client_area = data.client.area()
+ client_area = data.client.frame.area()
frame_size = data.client.frame.size()
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
width = screen_area.width() - (client_area.width() +