X11: Filter out Xlib errors from other connections

This commit is contained in:
Camilla Löwy
2020-03-16 17:13:59 +01:00
parent 44b5d06583
commit 2c8e0512dd
2 changed files with 5 additions and 0 deletions

View File

@@ -890,6 +890,9 @@ static Window createHelperWindow(void)
//
static int errorHandler(Display *display, XErrorEvent* event)
{
if (_glfw.x11.display != display)
return 0;
_glfw.x11.errorCode = event->error_code;
return 0;
}