changeset 36194:829983f984ad

Handle events while waiting for window being mapped. Reported by Jens Stimpfle, debian jstimpfle de.
author ib
date Sun, 26 May 2013 15:54:34 +0000
parents 9beb155c77a0
children d2c43a00a9c9
files gui/wm/ws.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Sun May 26 15:51:54 2013 +0000
+++ b/gui/wm/ws.c	Sun May 26 15:54:34 2013 +0000
@@ -755,9 +755,10 @@
     XEvent xev;
 
     if (win->Property & wsWaitMap) {
-        do
+        do {
             XNextEvent(wsDisplay, &xev);
-        while (xev.type != MapNotify || xev.xmap.event != win->WindowID);
+            wsEvent(&xev);
+        } while (xev.type != MapNotify || xev.xmap.event != win->WindowID);
 
         win->Mapped = wsMapped;
     }