]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix for repeated mode switchs losing keyboard/mouse focus
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2002 01:45:12 +0000 (01:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2002 01:45:12 +0000 (01:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2443 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 0ebdedac986f410536099a376e8430e59a63ab5f..50a12966935b207d6a71ca8dc262d5c06527bb97 100644 (file)
--- 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;