Might want to use GetForegroundWindow instead for window focus
This commit is contained in:
parent
c63f11f6fd
commit
abbd39fc6e
|
@ -746,7 +746,7 @@ bool win32_has_focus(void)
|
||||||
if (!g_inited)
|
if (!g_inited)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return GetFocus() == main_window.hwnd;
|
return GetForegroundWindow() == main_window.hwnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND win32_get_window(void)
|
HWND win32_get_window(void)
|
||||||
|
|
Loading…
Reference in New Issue