From: havoc Date: Thu, 26 Sep 2002 01:45:12 +0000 (+0000) Subject: fix for repeated mode switchs losing keyboard/mouse focus X-Git-Tag: RELEASE_0_2_0_RC1~197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d447ba1013a9a87565c3adce981a32c0f2211278;p=xonotic%2Fdarkplaces.git fix for repeated mode switchs losing keyboard/mouse focus git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2443 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index 0ebdedac..50a12966 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -475,6 +475,7 @@ void VID_Shutdown(void) return; vid_hidden = true; + usingmouse = false; if (vidx11_display) { uninstall_grabs(); @@ -835,6 +836,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp) GL_CheckExtension("GLX_ARB_get_proc_address", getprocaddressfuncs, "-nogetprocaddress", false); gl_videosyncavailable = GL_CheckExtension("GLX_SGI_video_sync", videosyncfuncs, "-novideosync", false); + usingmouse = false; vid_hidden = false; GL_Init(); return true;