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
+5 -2
View File
@@ -1382,8 +1382,11 @@ internal void
os_focus_external_window(OS_Handle handle)
{
HWND hwnd = (HWND)handle.u64[0];
SetForegroundWindow(hwnd);
SetFocus(hwnd);
if(hwnd != 0)
{
SetForegroundWindow(hwnd);
SetFocus(hwnd);
}
}
////////////////////////////////