From 85f9b6bc0e8445bdc21aa7cf256a048c1c6d5f99 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Jul 2009 20:15:53 +0000 Subject: [PATCH] Always release the mouse when not the active application. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3281 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/in_win.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/client/in_win.c b/engine/client/in_win.c index c00de0520..2c1908bef 100644 --- a/engine/client/in_win.c +++ b/engine/client/in_win.c @@ -605,9 +605,11 @@ void IN_UpdateGrabs(int fullscreen, int activeapp) { int grabmouse; - if (fullscreen) + if (!activeapp) + grabmouse = false; + else if (fullscreen) grabmouse = true; - else if (activeapp && _windowed_mouse.value) + else if (_windowed_mouse.value) { if (!Key_MouseShouldBeFree()) grabmouse = true; @@ -1739,7 +1741,7 @@ void IN_MouseMove (float *movements, int pnum) #ifdef USINGRAWINPUT if (rawmicecount) { - if (in_rawinput_combine.value && pnum == 0) + if ((in_rawinput_combine.value && pnum == 0) || cl.splitclients <= 1) { // not the right way to do this but it'll work for now int x;