From d447ba1013a9a87565c3adce981a32c0f2211278 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 26 Sep 2002 01:45:12 +0000 Subject: [PATCH] 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 --- vid_glx.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2