]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
grab mouse when using menu while watching demos (important for nexuiz)
[xonotic/darkplaces.git] / vid_wgl.c
index faf8ff606a5890e25b9dc9abb5694fb4ed5d0809..a567a84efaa472f7a74c68feceac8a4c5354ffb3 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -275,7 +275,7 @@ void VID_Finish (qboolean allowmousegrab)
 
 // handle the mouse state when windowed if that's changed
        vid_usemouse = false;
-       if (allowmousegrab && vid_mouse.integer && !key_consoleactive && !cls.demoplayback)
+       if (allowmousegrab && vid_mouse.integer && !key_consoleactive && (key_dest != key_game || !cls.demoplayback))
                vid_usemouse = true;
        if (vid_isfullscreen)
                vid_usemouse = true;