]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
reenabled keyboard grab when fullscreen - this is just a temporary solution, the...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Mar 2007 03:13:22 +0000 (03:13 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Mar 2007 03:13:22 +0000 (03:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6988 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 96bf36f26d51d0b2dd2a7e50a55ae22cc4212cb2..32edd05682b1b7c9b920d4f8990699aafd8636bc 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -287,7 +287,7 @@ static void IN_Activate (qboolean grab)
 #endif
                                XWarpPointer(vidx11_display, None, win, 0, 0, 0, 0, vid.width / 2, vid.height / 2);
 
-                       if (vid_grabkeyboard.integer)
+                       if (vid_grabkeyboard.integer || vid_isfullscreen)
                                XGrabKeyboard(vidx11_display, win, False, GrabModeAsync, GrabModeAsync, CurrentTime);
 
                        mouse_x = mouse_y = 0;