]> Dogcows Code - chaz/openbox/blobdiff - scripts/windowplacement.py
better historyplacement
[chaz/openbox] / scripts / windowplacement.py
index 4a9f1aee681a669b7d60116bcb146750ca2b8d49..aa9271ba512012bc3a1c17f7baffc72156bf8fb8 100644 (file)
@@ -1,6 +1,10 @@
 ############################################################################
 ### Window placement algorithms, choose one of these and ebind it to the ###
 ### 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,    ###
+### these.                                                               ###
 ############################################################################
 
 import otk
@@ -11,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.023543 seconds and 4 git commands to generate.