mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00: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)
|
os_focus_external_window(OS_Handle handle)
|
||||||
{
|
{
|
||||||
HWND hwnd = (HWND)handle.u64[0];
|
HWND hwnd = (HWND)handle.u64[0];
|
||||||
SetForegroundWindow(hwnd);
|
if(hwnd != 0)
|
||||||
SetFocus(hwnd);
|
{
|
||||||
|
SetForegroundWindow(hwnd);
|
||||||
|
SetFocus(hwnd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user