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:
parent
194ea5423e
commit
8d1aa7d8ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user