From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 7 May 2020 20:29:24 +0000 (+0200) Subject: temporary workaround for mouse input bug with sdl on linux X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F74%2Fhead;p=xonotic%2Fdarkplaces.git temporary workaround for mouse input bug with sdl on linux --- diff --git a/vid_sdl.c b/vid_sdl.c index bad18352..9d37cc14 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -1189,6 +1189,9 @@ void Sys_SendKeyEvents( void ) break; } + if (!vid_activewindow) + VID_SetMouse(false, false, false); + // enable/disable sound on focus gain/loss if ((!vid_hidden && vid_activewindow) || !snd_mutewhenidle.integer) { @@ -1446,6 +1449,9 @@ void Sys_SendKeyEvents( void ) break; } + if (!vid_activewindow) + VID_SetMouse(false, false, false); + // enable/disable sound on focus gain/loss if ((!vid_hidden && vid_activewindow) || !snd_mutewhenidle.integer) { @@ -2894,6 +2900,9 @@ void VID_Finish (void) #endif vid_activewindow = !vid_hidden && vid_hasfocus; + if (!vid_activewindow) + VID_SetMouse(false, false, false); + VID_UpdateGamma(); if (!vid_hidden)