mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-08 06:48:41 +00:00
use GetForegroundWindow for foucs detection with parented debuggers
This commit is contained in:
committed by
Ryan Fleury
parent
568a77b73c
commit
e3587dcb9f
@@ -1164,7 +1164,7 @@ internal B32
|
|||||||
wm_window_is_focused(WM_Window handle)
|
wm_window_is_focused(WM_Window handle)
|
||||||
{
|
{
|
||||||
W32_WM_Window *window = w32_wm_window_from_handle(handle);
|
W32_WM_Window *window = w32_wm_window_from_handle(handle);
|
||||||
HWND active_hwnd = GetActiveWindow();
|
HWND active_hwnd = GetForegroundWindow();
|
||||||
return active_hwnd == window->hwnd;
|
return active_hwnd == window->hwnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user