Skip to content

Commit

Permalink
X11: don't block on a ConfigureNotify event during SDL_SetWindowBorde…
Browse files Browse the repository at this point in the history
…red().

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.
  • Loading branch information
icculus committed Aug 13, 2015
1 parent eb57d75 commit 8a1fd98
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -864,7 +864,6 @@ X11_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)

SetWindowBordered(display, displaydata->screen, data->xwindow, bordered);
X11_XFlush(display);
X11_XIfEvent(display, &event, &isConfigureNotify, (XPointer)&data->xwindow);

if (visible) {
XWindowAttributes attr;
Expand Down

0 comments on commit 8a1fd98

Please sign in to comment.