mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-16 19:20:13 -08:00
prevent focusing null window, which was causing weird input event stealing on run...
This commit is contained in:
1 parent
1745ad4758
commit
aa0eec5763
1 file changed
+5
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user