mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
fa1d8ff552
commit
8068233fb2
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue