]> Dogcows Code - chaz/openbox/commitdiff
send a configurenotify on mapping after the window is shown
authorDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 02:20:59 +0000 (02:20 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 02:20:59 +0000 (02:20 +0000)
openbox/client.c

index b61787bcb096b0c445789bc89194593bf6d03896..5802b816e258b2f83ad02975321fcda9a5042609 100644 (file)
@@ -425,11 +425,6 @@ void client_manage(Window window)
         ob_debug("  but session requested %d %d instead, overriding\n",
                  self->session->x, self->session->y);
 
-    /* generate a ConfigureNotify telling the client where it is */
-    client_configure_full(self, self->area.x, self->area.y,
-                          self->area.width, self->area.height,
-                          FALSE, TRUE);
-
     client_apply_startup_state(self);
 
     mouse_grab_for_client(self, TRUE);
@@ -509,6 +504,15 @@ void client_manage(Window window)
     */
     client_show(self);
 
+    /* generate a ConfigureNotify telling the client where it is.
+
+       do this after showing the window. otherwise applications tend to
+       ignore the configurenotify. */
+    client_configure_full(self, self->area.x, self->area.y,
+                          self->area.width, self->area.height,
+                          FALSE, TRUE);
+
+
     if (activate) {
         gboolean stacked = client_restore_session_stacking(self);
         client_present(self, FALSE, !stacked);
This page took 0.029476 seconds and 4 git commands to generate.