diff --git a/ReadySetTarkov/Utility/NativeMethods.cs b/ReadySetTarkov/Utility/NativeMethods.cs index bcb7b41..e149378 100644 --- a/ReadySetTarkov/Utility/NativeMethods.cs +++ b/ReadySetTarkov/Utility/NativeMethods.cs @@ -106,7 +106,7 @@ public unsafe void ForceWindowIntoForeground(HWND window) nint activeWindow = _user32.WindowForegrounding.GetForegroundWindow(); (uint activeThread, _) = _user32.GetWindowThreadProcessId(activeWindow); - (uint windowThread, _) = _user32.GetWindowThreadProcessId(activeWindow); + (uint windowThread, _) = _user32.GetWindowThreadProcessId(window); if (currentThread != activeThread) _user32.AttachThreadInput(currentThread, activeThread, true);