]> Dogcows Code - chaz/openbox/commitdiff
call the place routine after the window is grabbed
authorDana Jansens <danakj@orodu.net>
Fri, 17 Jan 2003 07:06:34 +0000 (07:06 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 17 Jan 2003 07:06:34 +0000 (07:06 +0000)
src/screen.cc

index 1033f8d8ac822bba34472406d71beb0ee90fded2..b95c1908a1b8aae6e51cc5ffb5a47dd53c13202b 100644 (file)
@@ -474,14 +474,6 @@ void Screen::manageWindow(Window window)
   // create the decoration frame for the client window
   client->frame = new Frame(client, &_style);
 
-  if (!(openbox->state() == Openbox::State_Starting ||
-        client->positionRequested())) {
-    // position the window intelligenty .. hopefully :)
-    // call the python PLACEWINDOW binding
-    EventData data(_number, client, EventPlaceWindow, 0);
-    openbox->bindings()->fireEvent(&data);
-  }
-
   // add to the wm's map
   openbox->addClient(client->frame->window(), client);
   openbox->addClient(client->frame->plate(), client);
@@ -498,6 +490,14 @@ void Screen::manageWindow(Window window)
   // reparent the client to the frame
   client->frame->grabClient();
 
+  if (!(openbox->state() == Openbox::State_Starting ||
+        client->positionRequested())) {
+    // position the window intelligenty .. hopefully :)
+    // call the python PLACEWINDOW binding
+    EventData data(_number, client, EventPlaceWindow, 0);
+    openbox->bindings()->fireEvent(&data);
+  }
+
   // if on the current desktop.. (or all desktops)
   if (client->desktop() == _desktop ||
       client->desktop() == (signed)0xffffffff) {
This page took 0.029188 seconds and 4 git commands to generate.