1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Spoike 2009-07-15 20:15:53 +00:00
parent 0c5ee4d373
commit 85f9b6bc0e

View file

@ -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;