From: havoc Date: Fri, 16 Mar 2007 03:13:22 +0000 (+0000) Subject: reenabled keyboard grab when fullscreen - this is just a temporary solution, the... X-Git-Tag: xonotic-v0.1.0preview~3429 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=06df6f77ac5ce62c2a284134dc4392e87307774b;p=xonotic%2Fdarkplaces.git reenabled keyboard grab when fullscreen - this is just a temporary solution, the window should be focused but isn't git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6988 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index 96bf36f2..32edd056 100644 --- 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;