From 2d4c4b7949563ce303dd44dd45295dfe7d443804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 16 Mar 2020 17:13:59 +0100 Subject: [PATCH] X11: Filter out Xlib errors from other connections (cherry picked from commit 2c8e0512ddb1e8baa73c5b8a03a79aedb4e5939d) --- README.md | 2 ++ src/x11_init.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index a9f0d935..e08d56c9 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,8 @@ information on what to include when reporting a bug. ## Changelog - [X11] Bugfix: IME input of CJK was broken for "C" locale (#1587,#1636) + - [X11] Bugfix: Xlib errors caused by other parts of the application could be + reported as GLFW errors ## Contact diff --git a/src/x11_init.c b/src/x11_init.c index ee6c8720..a34bd591 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -851,6 +851,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; }