diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-02-04 16:11:38 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-02-04 16:11:38 +0100 |
commit | a8ffd12e99dce07765244f776a6037c3b6ca174e (patch) | |
tree | 6ddd50c100ad44556e9cd7c6cd8fecf39734566f /client | |
parent | 2ba69f9f8819daaa3d166c4c1c7e03b121b88a95 (diff) | |
download | spice-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')
-rw-r--r-- | client/x11/platform.cpp | 4 |
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"); } |