Commit 141ac2b59d5d8b443ff89693cae69b310598119e

Ryan C. Gordon 2015-06-07T17:59:31

Backed out changeset c6d43e08be34 This caused Bugzilla #2963, so we'll find a better solution.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c
index 245050e..1b7cafc 100644
--- a/src/video/x11/SDL_x11window.c
+++ b/src/video/x11/SDL_x11window.c
@@ -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;
             }