mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
xwm: user custom event handler
This commit is contained in:
parent
96f09c7492
commit
ea4b871e16
5 changed files with 16 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue