[MPlayer-cvslog] r36290 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Sun May 26 17:54:34 CEST 2013


Author: ib
Date: Sun May 26 17:54:34 2013
New Revision: 36290

Log:
Handle events while waiting for window being mapped.

Reported by Jens Stimpfle, debian jstimpfle de.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sun May 26 17:51:54 2013	(r36289)
+++ trunk/gui/wm/ws.c	Sun May 26 17:54:34 2013	(r36290)
@@ -755,9 +755,10 @@ static void wsWindowMapWait(wsWindow *wi
     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;
     }


More information about the MPlayer-cvslog mailing list