diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-18 12:43:45 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-18 15:35:20 +0000 |
commit | 44c7e233ff7581c9735b03c2105d9803f9a8535f (patch) | |
tree | 15f618b089fcc807783471c7b2beb50e10a5a155 /include/wlr | |
parent | 69b0b296a296d6d42607eea6dd82876d00d306fb (diff) |
xwayland: add wlr_xwayland_shell_v1_set_client()
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/xwayland/shell.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/xwayland/shell.h b/include/wlr/xwayland/shell.h index 50be0aae..893e5fda 100644 --- a/include/wlr/xwayland/shell.h +++ b/include/wlr/xwayland/shell.h @@ -26,7 +26,10 @@ struct wlr_xwayland_shell_v1 { // private state + struct wl_client *client; + struct wl_listener display_destroy; + struct wl_listener client_destroy; }; /** @@ -54,4 +57,10 @@ struct wlr_xwayland_surface_v1 { struct wlr_xwayland_shell_v1 *wlr_xwayland_shell_v1_create( struct wl_display *display, uint32_t version); +/** + * Allow a client to bind to the xwayland_shell_v1 global. + */ +void wlr_xwayland_shell_v1_set_client(struct wlr_xwayland_shell_v1 *shell, + struct wl_client *client); + #endif |