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.
dev
Kristian Høgsberg 13 years ago
parent 194ea5423e
commit 8d1aa7d8ef
  1. 2
      src/xwayland/window-manager.c

@ -857,7 +857,7 @@ weston_wm_handle_event(int fd, uint32_t mask, void *data)
continue; continue;
} }
switch (event->response_type & ~0x80) { switch (event->response_type) {
case XCB_BUTTON_PRESS: case XCB_BUTTON_PRESS:
case XCB_BUTTON_RELEASE: case XCB_BUTTON_RELEASE:
weston_wm_handle_button(wm, event); weston_wm_handle_button(wm, event);

Loading…
Cancel
Save