From 47b68170ad8a0d6b4fd5be182d8ba0c953114cb4 Mon Sep 17 00:00:00 2001 From: Tom Adams Date: Sun, 30 May 2010 01:00:17 +0000 Subject: [PATCH] auto capture mouse on focus (#728) --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 24ef5b7c3..aca576a7f 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;