From 4ba750bc7b3500cf50467923ae11217577b1645a Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 12 Mar 2013 22:54:33 +0000 Subject: [PATCH] ------------------------------------------------------------------------ r4199 | acceptthis | 2013-02-14 18:27:06 +0000 (Thu, 14 Feb 2013) | 1 line fix windowed mousegrab issue ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4197 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index 66b09626..7f566b64 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -491,19 +491,14 @@ static void install_grabs(void) { //XGrabPointer can cause alt+tab type shortcuts to be skipped by the window manager. This means we don't want to use it unless we have no choice. //the grab is purely to constrain the pointer to the window - if (!(fullscreenflags & FULLSCREEN_ACTIVE)) - XUngrabPointer(vid_dpy, CurrentTime); - else - { //don't actually grab if we're fullscreen, but do make sure the rest is done. - if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy), - True, - 0, - GrabModeAsync, GrabModeAsync, - vid_window, - None, - CurrentTime)) - Con_Printf("Pointer grab failed\n"); - } + if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy), + True, + 0, + GrabModeAsync, GrabModeAsync, + vid_window, + None, + CurrentTime)) + Con_Printf("Pointer grab failed\n"); if (x11_input_method == XIM_DGA) {