Backed out changeset c6d43e08be34

This caused Bugzilla #2963, so we'll find a better solution.
This commit is contained in:
Ryan C. Gordon 2015-06-07 17:59:31 -04:00
parent 699f879a8f
commit 141ac2b59d
1 changed files with 2 additions and 5 deletions

View File

@ -1353,12 +1353,9 @@ X11_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
if (oldstyle_fullscreen || grabbed) {
/* Try to grab the mouse */
for (;;) {
const unsigned int mask = ButtonPressMask | ButtonReleaseMask
| PointerMotionMask | FocusChangeMask;
int result =
X11_XGrabPointer(display, data->xwindow, False, mask,
GrabModeAsync, GrabModeAsync, data->xwindow,
None, CurrentTime);
X11_XGrabPointer(display, data->xwindow, True, 0, GrabModeAsync,
GrabModeAsync, data->xwindow, None, CurrentTime);
if (result == GrabSuccess) {
break;
}