X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fwindowplacement.py;h=aa9271ba512012bc3a1c17f7baffc72156bf8fb8;hb=41a03629c9f166f7a1b427ed1634b44c6c38da6e;hp=070cc0ee2699f890a0e7d97141d2086bb2404c80;hpb=e1e5293ae354ab7b1c8459aab85e60e1a801924d;p=chaz%2Fopenbox 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()