]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
add new actions from the ewmh spec
[chaz/openbox] / src / screen.cc
index 498c9c86a9791823469ff296a7f5f0fe1871ac3d..b95c1908a1b8aae6e51cc5ffb5a47dd53c13202b 100644 (file)
@@ -471,14 +471,6 @@ void Screen::manageWindow(Window window)
   // reparented back to root automatically
   XChangeSaveSet(**otk::display, window, SetModeInsert);
 
-  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);
-  }
-
   // create the decoration frame for the client window
   client->frame = new Frame(client, &_style);
 
@@ -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.020395 seconds and 4 git commands to generate.