use GetForegroundWindow for foucs detection with parented debuggers

This commit is contained in:
Nikita Smith
2026-06-02 12:10:50 -07:00
committed by Ryan Fleury
parent 568a77b73c
commit e3587dcb9f
@@ -1164,7 +1164,7 @@ internal B32
wm_window_is_focused(WM_Window handle)
{
W32_WM_Window *window = w32_wm_window_from_handle(handle);
HWND active_hwnd = GetActiveWindow();
HWND active_hwnd = GetForegroundWindow();
return active_hwnd == window->hwnd;
}