Skip to content

Commit

Permalink
Backed out changeset c6d43e08be34
Browse files Browse the repository at this point in the history
This caused Bugzilla #2963, so we'll find a better solution.
  • Loading branch information
icculus committed Jun 7, 2015
1 parent 699f879 commit 141ac2b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 141ac2b

Please sign in to comment.