From a8ffd12e99dce07765244f776a6037c3b6ca174e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 4 Feb 2010 16:11:38 +0100 Subject: [PATCH] Filter out XIM X events XIM ClientMessage events to an XIM internal window was triggering the check for a window message procs. We need to properly filter events with XFilterEvent to avoid this happening. --- client/x11/platform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index 6f550135..6aab7992 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -176,6 +176,10 @@ void XEventHandler::on_event() continue; } + if (XFilterEvent(&event, None)) { + continue; + } + if (XFindContext(&_x_display, event.xany.window, _win_proc_context, &proc_pointer)) { THROW("no window proc"); }