mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-17 11:40:13 -08:00
todo
This commit is contained in:
1 parent
cc93bf4439
commit
19cee2d646
2 files changed
+95
-85
No files matched your search
@@ -201,7 +201,17 @@ wm_window_focus(WM_Window handle)
|
||||
{
|
||||
if(wm_window_match(handle, wm_window_zero())) {return;}
|
||||
LNX_WM_Window *w = (LNX_WM_Window *)handle.u64[0];
|
||||
XSetInputFocus(lnx_wm_state->display, w->window, RevertToNone, CurrentTime);
|
||||
//
|
||||
// TODO: if the target is lightweight, the debugger may launch it even before the first frame is drawn;
|
||||
// this is a problem because XSetInputFocus is now called before XMapWindow, we need a guard
|
||||
// to prevent an X server error:
|
||||
//
|
||||
// X Error of failed request: BadMatch (invalid parameter attributes)
|
||||
// Major opcode of failed request: 42 (X_SetInputFocus)
|
||||
// Serial number of failed request: 373
|
||||
// Current serial number in output stream: 374
|
||||
//
|
||||
XSetInputFocus(os_lnx_gfx_state->display, w->window, RevertToNone, CurrentTime);
|
||||
}
|
||||
|
||||
internal B32
|
||||
|
||||
Reference in new issue
Block a user