]> Dogcows Code - chaz/openbox/commitdiff
http://mail.gnome.org/archives/wm-spec-list/2006-May/msg00000.html
authorDana Jansens <danakj@orodu.net>
Thu, 5 Apr 2007 03:59:24 +0000 (03:59 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 5 Apr 2007 03:59:24 +0000 (03:59 +0000)
Send ConfigureNotify events when a window is mapped at the position it has specified. When we add decorations, the window gets moved in reference to the root window, so it needs to be told.

openbox/client.c

index 80bc8a394d91efafbda5a00e8a0b891f15d6c1c9..eb00e6d60b4a308e9a34d759ce1ea44df4a3ca9e 100644 (file)
@@ -2134,8 +2134,12 @@ static void client_apply_startup_state(ObClient *self, gint x, gint y)
         pos = TRUE;
     }
 
-    /* if the client didn't get positioned yet, then do so now */
-    if (!pos && (ox != x || oy != y)) {
+    /* if the client didn't get positioned yet, then do so now
+       call client_move even if the window is not being moved anywhere, because
+       when we reparent it and decorate it, it is getting moved and we need to
+       be telling it so with a ConfigureNotify event.
+    */
+    if (!pos) {
         /* use the saved position */
         self->area.x = ox;
         self->area.y = oy;
This page took 0.025422 seconds and 4 git commands to generate.