Mercurial > mplayer.hg
comparison gui/wm/ws.c @ 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 | 9a319cd3ee66 |
comparison
equal
deleted
inserted
replaced
36193:9beb155c77a0 | 36194:829983f984ad |
---|---|
753 static void wsWindowMapWait(wsWindow *win) | 753 static void wsWindowMapWait(wsWindow *win) |
754 { | 754 { |
755 XEvent xev; | 755 XEvent xev; |
756 | 756 |
757 if (win->Property & wsWaitMap) { | 757 if (win->Property & wsWaitMap) { |
758 do | 758 do { |
759 XNextEvent(wsDisplay, &xev); | 759 XNextEvent(wsDisplay, &xev); |
760 while (xev.type != MapNotify || xev.xmap.event != win->WindowID); | 760 wsEvent(&xev); |
761 } while (xev.type != MapNotify || xev.xmap.event != win->WindowID); | |
761 | 762 |
762 win->Mapped = wsMapped; | 763 win->Mapped = wsMapped; |
763 } | 764 } |
764 } | 765 } |
765 | 766 |