prevent focusing null window, which was causing weird input event stealing on run...

This commit is contained in:
Ryan Fleury
2025-09-19 16:58:41 -07:00
parent 1745ad4758
commit aa0eec5763
+3
View File
@@ -1382,9 +1382,12 @@ internal void
os_focus_external_window(OS_Handle handle) os_focus_external_window(OS_Handle handle)
{ {
HWND hwnd = (HWND)handle.u64[0]; HWND hwnd = (HWND)handle.u64[0];
if(hwnd != 0)
{
SetForegroundWindow(hwnd); SetForegroundWindow(hwnd);
SetFocus(hwnd); SetFocus(hwnd);
} }
}
//////////////////////////////// ////////////////////////////////
//~ rjf: @os_hooks Monitors (Implemented Per-OS) //~ rjf: @os_hooks Monitors (Implemented Per-OS)