summaryrefslogtreecommitdiffstats
path: root/client/x11/platform.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-02-04 16:11:38 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-04 16:11:38 +0100
commita8ffd12e99dce07765244f776a6037c3b6ca174e (patch)
tree6ddd50c100ad44556e9cd7c6cd8fecf39734566f /client/x11/platform.cpp
parent2ba69f9f8819daaa3d166c4c1c7e03b121b88a95 (diff)
downloadspice-a8ffd12e99dce07765244f776a6037c3b6ca174e.tar.gz
spice-a8ffd12e99dce07765244f776a6037c3b6ca174e.tar.xz
spice-a8ffd12e99dce07765244f776a6037c3b6ca174e.zip
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.
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r--client/x11/platform.cpp4
1 files changed, 4 insertions, 0 deletions
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");
}