commit 259fcbdbc88058befbec7300f261c162e932b75b
Author: Julian Nechaevsky <julia.nechaevskaya@live.com>
AuthorDate: Sun May 13 16:01:27 2018 +0300
Commit: Julian Nechaevsky <julia.nechaevskaya@live.com>
CommitDate: Sun May 13 16:01:27 2018 +0300
Don't read mouse movement in inactive game window
---
src/i_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_video.c b/src/i_video.c
index 89427c25..9aa5b059 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -477,7 +477,7 @@ void I_StartTic (void)
I_GetEvent();
- if (usemouse && !nomouse)
+ if (usemouse && !nomouse && window_focused)
{
I_ReadMouse();
}