[x11] Don't force grab or mouse warp in fullscreen

This seems to be more for legacy X11 (ie, without fixes etc), but
fullscreen really shouldn't affect grabbing directly (rather, it should
be up to the client whether grabbing (and thus warping) is enabled at
all.
This commit is contained in:
Bill Currie 2023-07-14 07:11:53 +09:00
parent fa1d8ff552
commit 8068233fb2

View file

@ -806,7 +806,7 @@ event_motion (XEvent *event)
x11_mouse_axes[0].value = event->xmotion.x_root;
x11_mouse_axes[1].value = event->xmotion.y_root;
} else {
if (vid_fullscreen || input_grabbed) {
if (input_grabbed) {
if (!event->xmotion.send_event) {
int center_x = viddef.width / 2;
int center_y = viddef.height / 2;
@ -1183,9 +1183,6 @@ in_x11_grab_input (void *data, int grab)
}
#endif
if (vid_fullscreen)
grab = grab || vid_fullscreen;
if ((input_grabbed && grab) || (!input_grabbed && !grab))
return;