mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-30 08:02:22 +00:00
Avoid async error handling breaking XSetInputFocus.
This commit is contained in:
parent
00d7d6c7ca
commit
c78239a10d
@ -378,6 +378,7 @@ static bool gfx_ctx_set_video_mode(
|
||||
// This can blow up on some drivers. It's not fatal, so override errors for this call.
|
||||
int (*old_handler)(Display*, XErrorEvent*) = XSetErrorHandler(nul_handler);
|
||||
XSetInputFocus(g_dpy, g_win, RevertToNone, CurrentTime);
|
||||
XSync(g_dpy, False);
|
||||
XSetErrorHandler(old_handler);
|
||||
|
||||
XFree(vi);
|
||||
|
@ -410,6 +410,7 @@ static bool gfx_ctx_set_video_mode(
|
||||
// This can blow up on some drivers. It's not fatal, so override errors for this call.
|
||||
int (*old_handler)(Display*, XErrorEvent*) = XSetErrorHandler(nul_handler);
|
||||
XSetInputFocus(g_dpy, g_win, RevertToNone, CurrentTime);
|
||||
XSync(g_dpy, False);
|
||||
XSetErrorHandler(old_handler);
|
||||
|
||||
XFree(vi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user