]> Dogcows Code - chaz/openbox/blobdiff - scripts/windowplacement.py
better historyplacement
[chaz/openbox] / scripts / windowplacement.py
index 070cc0ee2699f890a0e7d97141d2086bb2404c80..aa9271ba512012bc3a1c17f7baffc72156bf8fb8 100644 (file)
@@ -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()
This page took 0.021188 seconds and 4 git commands to generate.