X11: don't block on a ConfigureNotify event during SDL_SetWindowBordered().
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Aug 2015 14:56:16 -0400
changeset 9837 bbb6d1f2a849
parent 9836 3d43bb56c5d6
child 9838 5b9fa1c4d15b
X11: don't block on a ConfigureNotify event during SDL_SetWindowBordered(). Unity's window manager is (legitimately, since it moves the client window's position) sending one, and SDL was incorrectly trying to mask it out. Other window managers (KWin, apparently) don't move the window and would hang here indefinitely. Fixes Bugzilla #3052.
src/video/x11/SDL_x11window.c
--- a/src/video/x11/SDL_x11window.c	Sun Aug 09 20:01:01 2015 +0200
+++ b/src/video/x11/SDL_x11window.c	Thu Aug 13 14:56:16 2015 -0400
@@ -864,7 +864,6 @@
 
     SetWindowBordered(display, displaydata->screen, data->xwindow, bordered);
     X11_XFlush(display);
-    X11_XIfEvent(display, &event, &isConfigureNotify, (XPointer)&data->xwindow);
 
     if (visible) {
         XWindowAttributes attr;