Skip to content

Commit 83e7eef

Browse files
committed
Fixed background input check to allow it while the game is minimized if SKIF is in the foreground.
1 parent c3c1295 commit 83e7eef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/imgui/imgui_user.inl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,8 +3894,9 @@ SK_ImGui_UpdateGamepadProcessingEligibility (void)
38943894

38953895
for ( auto& window : windows_above )
38963896
{
3897-
if (IsWindowOverlapping (window, rcVisibleWindow) &&
3898-
injected_pid_cache [window])
3897+
if ((injected_pid_cache [window] == dwPidOfSKIF && !game_iconic) ||
3898+
(IsWindowOverlapping (window, rcVisibleWindow) &&
3899+
injected_pid_cache [window]))
38993900
{
39003901
process_input = false;
39013902
break;

0 commit comments

Comments
 (0)