]> Dogcows Code - chaz/openbox/commitdiff
use the frame's area not the client's
authorDana Jansens <danakj@orodu.net>
Wed, 12 Feb 2003 00:39:15 +0000 (00:39 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 12 Feb 2003 00:39:15 +0000 (00:39 +0000)
scripts/windowplacement.py

index a319c7b1b78c5c10e45c7e434b3b2ec8ce8b4d28..e718c4eefad92227df467b7169a36cf21da777ff 100644 (file)
@@ -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() +
This page took 0.023056 seconds and 4 git commands to generate.