Skip to content

Commit

Permalink
Fix window thread varible for swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
hymccord committed Feb 18, 2023
1 parent 70effb2 commit 2a272ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReadySetTarkov/Utility/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a272ed

Please sign in to comment.