summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-30 10:06:59 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-30 10:06:59 -0400
commit8d1aa7d8efa96da00e90fe08cbf81fa9bc826a8a (patch)
tree4b7ac7116ad48416f7a6461fdff2cfa18cfc2d01
parent194ea5423ecdee74121326939d5951c04301dada (diff)
xwm: Don't dispatch for events coming from XSendEvent
GTK+ sends an unmap_notify to the root window when a toplevel GTK+ window gets unmapped. That may be a GTK+ bug, but we should just ignore events from XSendEvent.
-rw-r--r--src/xwayland/window-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
index 3808335..a81d03b 100644
--- a/src/xwayland/window-manager.c
+++ b/src/xwayland/window-manager.c
@@ -857,7 +857,7 @@ weston_wm_handle_event(int fd, uint32_t mask, void *data)
continue;
}
- switch (event->response_type & ~0x80) {
+ switch (event->response_type) {
case XCB_BUTTON_PRESS:
case XCB_BUTTON_RELEASE:
weston_wm_handle_button(wm, event);