Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
When we're reparented we'll get both unmapnotify and mapnotify. Eat b…
Browse files Browse the repository at this point in the history
…oth so the unmap notify doesn't confuse the normal event processing.
  • Loading branch information
slouken committed Sep 27, 2012
1 parent 1a7aa0c commit a2f0b8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -1065,6 +1065,7 @@ X11_BeginWindowFullscreenLegacy(_THIS, SDL_Window * window, SDL_VideoDisplay * _
XWarpPointer(display, None, root, 0, 0, 0, 0, rect.x, rect.y);

/* Wait to be mapped, filter Unmap event out if it arrives. */
XIfEvent(display, &ev, &isUnmapNotify, (XPointer)&data->xwindow);
XIfEvent(display, &ev, &isMapNotify, (XPointer)&data->xwindow);

/* Wait to be visible, or XSetInputFocus() triggers an X error. */
Expand Down

0 comments on commit a2f0b8e

Please sign in to comment.