Explorar o código

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.
Ryan C. Gordon %!s(int64=10) %!d(string=hai) anos
pai
achega
8a1fd98261
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/video/x11/SDL_x11window.c

+ 0 - 1
src/video/x11/SDL_x11window.c

@@ -864,7 +864,6 @@ X11_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
 
 
     SetWindowBordered(display, displaydata->screen, data->xwindow, bordered);
     SetWindowBordered(display, displaydata->screen, data->xwindow, bordered);
     X11_XFlush(display);
     X11_XFlush(display);
-    X11_XIfEvent(display, &event, &isConfigureNotify, (XPointer)&data->xwindow);
 
 
     if (visible) {
     if (visible) {
         XWindowAttributes attr;
         XWindowAttributes attr;