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.
This commit is contained in:
Kristian Høgsberg 2012-05-30 10:06:59 -04:00
parent 194ea5423e
commit 8d1aa7d8ef

View File

@ -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);