mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 07:32:23 -07:00
prevent focusing null window, which was causing weird input event stealing on run...
This commit is contained in:
@@ -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