Skip to content

Commit

Permalink
don't change priority to idle if i_pauseinbackground is false
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Aug 9, 2024
1 parent 19660e0 commit 19f69dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common/platform/win32/i_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ int BlockMouseMove;
static bool EventHandlerResultForNativeMouse;


EXTERN_CVAR(Bool, i_pauseinbackground);


CVAR (Bool, k_allowfullscreentoggle, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)

static void I_CheckGUICapture ()
Expand Down Expand Up @@ -481,8 +484,8 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break;

case WM_ACTIVATEAPP:
AppActive = wParam == TRUE;
if (wParam)
AppActive = (wParam == TRUE);
if (wParam || !i_pauseinbackground)
{
SetPriorityClass (GetCurrentProcess (), INGAME_PRIORITY_CLASS);
}
Expand Down

0 comments on commit 19f69dd

Please sign in to comment.