mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
X11: Filter out Xlib errors from other connections
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user