about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTom Adams <Tom_Adams@web.de>2010-05-30 01:00:17 +0000
committerTom Adams <Tom_Adams@web.de>2010-05-30 01:00:17 +0000
commit47b68170ad8a0d6b4fd5be182d8ba0c953114cb4 (patch)
tree4e34f2274c663dd89ecbfca8db0433382072859b
parent84e307029bfbbdadefe0aff93316f6d398df5496 (diff)
downloadzcatch-47b68170ad8a0d6b4fd5be182d8ba0c953114cb4.tar.gz
zcatch-47b68170ad8a0d6b4fd5be182d8ba0c953114cb4.zip
auto capture mouse on focus (#728)
-rw-r--r--src/engine/client/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 24ef5b7c..aca576a7 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -1657,7 +1657,7 @@ void CClient::Run()
 				m_WindowMustRefocus++;
 			}
 
-			if(Input()->KeyPressed(KEY_MOUSE_1))
+			if(m_WindowMustRefocus >= 3 || Input()->KeyPressed(KEY_MOUSE_1))
 			{
 				Input()->MouseModeRelative();
 				m_WindowMustRefocus = 0;