shithub: choc

Download patch

ref: df7edd0a23556c0b784a15c0fac9e00a95ca0bb9
parent: 5ed7e666f29800043e15f7b301dd665e9c40fd39
parent: 259fcbdbc88058befbec7300f261c162e932b75b
author: Fabian Greffrath <fabian@greffrath.com>
date: Sun May 13 16:37:46 EDT 2018

Merge pull request #1037 from JNechaevsky/mouse_fix

Don't read mouse movement events in inactive game window

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -477,7 +477,7 @@
 
     I_GetEvent();
 
-    if (usemouse && !nomouse)
+    if (usemouse && !nomouse && window_focused)
     {
         I_ReadMouse();
     }