shithub: choc

Download patch

ref: 259fcbdbc88058befbec7300f261c162e932b75b
parent: 00311e89f5bc707c333c38b5f1850d2f2a35e076
author: Julian Nechaevsky <[email protected]>
date: Sun May 13 12:01:27 EDT 2018

Don't read mouse movement 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();
     }