mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Backed out changeset c6d43e08be34
This caused Bugzilla #2963, so we'll find a better solution.
This commit is contained in:
parent
699f879a8f
commit
141ac2b59d
@ -1353,12 +1353,9 @@ X11_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
|
|||||||
if (oldstyle_fullscreen || grabbed) {
|
if (oldstyle_fullscreen || grabbed) {
|
||||||
/* Try to grab the mouse */
|
/* Try to grab the mouse */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
const unsigned int mask = ButtonPressMask | ButtonReleaseMask
|
|
||||||
| PointerMotionMask | FocusChangeMask;
|
|
||||||
int result =
|
int result =
|
||||||
X11_XGrabPointer(display, data->xwindow, False, mask,
|
X11_XGrabPointer(display, data->xwindow, True, 0, GrabModeAsync,
|
||||||
GrabModeAsync, GrabModeAsync, data->xwindow,
|
GrabModeAsync, data->xwindow, None, CurrentTime);
|
||||||
None, CurrentTime);
|
|
||||||
if (result == GrabSuccess) {
|
if (result == GrabSuccess) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user