diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-30 10:06:59 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-30 10:06:59 -0400 |
commit | 8d1aa7d8efa96da00e90fe08cbf81fa9bc826a8a (patch) | |
tree | 4b7ac7116ad48416f7a6461fdff2cfa18cfc2d01 | |
parent | 194ea5423ecdee74121326939d5951c04301dada (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.c | 2 |
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); |