summaryrefslogtreecommitdiff
path: root/scripts/windowplacement.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-01 10:36:34 +0000
committerDana Jansens <danakj@orodu.net>2003-02-01 10:36:34 +0000
commit41a03629c9f166f7a1b427ed1634b44c6c38da6e (patch)
treeba6b0636006f401105a758aab4df6496a1d2af56 /scripts/windowplacement.py
parentb18e83e010a9dec95d42296751469aba0960bc5c (diff)
better historyplacement
Diffstat (limited to 'scripts/windowplacement.py')
-rw-r--r--scripts/windowplacement.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/windowplacement.py b/scripts/windowplacement.py
index 070cc0ee..aa9271ba 100644
--- a/scripts/windowplacement.py
+++ b/scripts/windowplacement.py
@@ -3,7 +3,7 @@
### ob.EventAction.PlaceWindow event. ###
### ###
### Also see historyplacement.py for the history placement module which ###
-### provides an algorithm that can be used in place of, or alongside ###
+### provides an algorithm that can be used in place of, or alongside, ###
### these. ###
############################################################################
@@ -15,6 +15,7 @@ _rand = random.Random()
def random(data):
if not data.client: return
+ if data.client.positionRequested(): return
client_area = data.client.area()
frame_size = data.client.frame.size()
screen_area = ob.openbox.screen(data.screen).area()