X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fwindowplacement.py;h=aa9271ba512012bc3a1c17f7baffc72156bf8fb8;hb=41a03629c9f166f7a1b427ed1634b44c6c38da6e;hp=4a9f1aee681a669b7d60116bcb146750ca2b8d49;hpb=705d70b053b6c99949dabf01405bbb598588b3a8;p=chaz%2Fopenbox diff --git a/scripts/windowplacement.py b/scripts/windowplacement.py index 4a9f1aee..aa9271ba 100644 --- a/scripts/windowplacement.py +++ b/scripts/windowplacement.py @@ -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()