xwm: user custom event handler

This commit is contained in:
Tony Crisci 2017-12-13 17:54:19 -05:00
parent 96f09c7492
commit ea4b871e16
5 changed files with 16 additions and 3 deletions

View file

@ -32,6 +32,13 @@ struct wlr_xwayland {
struct wl_signal new_surface;
} events;
/**
* Add a custom event handler to xwayland. Return 1 if the event was
* handled or 0 to use the default wlr-xwayland handler. wlr-xwayland will
* free the event.
*/
int (*user_event_handler)(struct wlr_xwm *xwm, xcb_generic_event_t *event);
void *data;
};