1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

activate XGrabServer again

This patch fixes a small problem which only rarely occurs. If a
window is opened only for a very short time and closed right away, in
some circumstances the frame around it stays opened. It looks like
Window Maker doesn't get the destroy message. The XGrabServer call was
commented in the code so I activated it again which seems to prevent this
from happening. I think it actually make sense since the ungrab calls are
used anyway in the following code.
This commit is contained in:
Ralf Hoffmann
2009-12-04 14:51:31 +01:00
committed by Carlos R. Mafra
parent 13c2d523e2
commit 6c6e832c52

View File

@@ -612,7 +612,7 @@ WWindow *wManageWindow(WScreen *scr, Window window)
Bool raise = False;
/* mutex. */
/* XGrabServer(dpy); */
XGrabServer(dpy);
XSync(dpy, False);
/* make sure the window is still there */
if (!XGetWindowAttributes(dpy, window, &wattribs)) {