diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-13 17:54:19 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-13 17:54:19 -0500 |
commit | ea4b871e16ae63db67f2bf89c00e814b3dde6c78 (patch) | |
tree | acbfa32bbd367b66344a42ea7f265a14af818b52 /include/wlr/xwayland.h | |
parent | 96f09c749228f631e3a160de370e2894a4428e20 (diff) |
xwm: user custom event handler
Diffstat (limited to 'include/wlr/xwayland.h')
-rw-r--r-- | include/wlr/xwayland.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index 792d2b88..9a89661b 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -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; }; |