diff -Naur a/src/client.c b/src/client.c --- a/src/client.c +++ b/src/client.c @@ -785,10 +785,23 @@ } clientConfigureWindows (c, wc, mask, flags); + /* + + We reparent to client window. According to the ICCCM spec, the + WM must send a senthetic event when the window is moved and not resized. + + But, since we reparent the window, we must also send a synthetic + configure event when the window is moved and resized. - if ((flags & CFG_NOTIFY) || - ((flags & CFG_REQUEST) && !(WIN_MOVED || WIN_RESIZED)) || - (WIN_MOVED && !WIN_RESIZED)) + See this thread for the rational: + http://www.mail-archive.com/wm-spec-list@gnome.org/msg00379.html + + And specifically this post from Carsten Haitzler: + http://www.mail-archive.com/wm-spec-list@gnome.org/msg00382.html + + */ + if ((WIN_MOVED) || (flags & CFG_NOTIFY) || + ((flags & CFG_REQUEST) && !(WIN_MOVED || WIN_RESIZED))) { DBG ("Sending ConfigureNotify"); ce.type = ConfigureNotify; @@ -4077,6 +4106,7 @@ eventFilterPop (display_info->xfilter); } myScreenUngrabPointer (screen_info); + if (passdata.grab && screen_info->params->box_move) { myDisplayUngrabServer (display_info); @@ -4606,11 +4636,12 @@ wc.y = c->y; wc.width = c->width; wc.height = c->height; - clientConfigure (c, &wc, CWX | CWY | CWHeight | CWWidth, CFG_NOTIFY); + clientConfigure (c, &wc, CWX | CWY | CWHeight | CWWidth, NO_CFG_FLAG); #ifdef HAVE_XSYNC clientXSyncClearTimeout (c); c->xsync_waiting = FALSE; #endif /* HAVE_XSYNC */ + myScreenUngrabKeyboard (screen_info); if (!passdata.released) { @@ -4622,6 +4653,7 @@ eventFilterPop (display_info->xfilter); } myScreenUngrabPointer (screen_info); + if (passdata.grab && screen_info->params->box_resize) { myDisplayUngrabServer (display_info);