diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2021-10-23 18:55:54 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-31 10:33:14 +0100 |
commit | 6ad0f819e2d1f030d73bdbf963f2aed709673be9 (patch) | |
tree | a3d7987f4f1c22b2fafea4ff64d31128fa6f6342 /include/wlr | |
parent | 83090de0340e020c75cca9f28e74cf5413dabd04 (diff) |
xdg-activation-v1: enable compositors to request their own tokens
These new functions allow a compositor to request new managed tokens
without participating in the xdg-activation procedure as a wayland
client.
This enables the compositor itself to behave as a launcher
application.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_activation_v1.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xdg_activation_v1.h b/include/wlr/types/wlr_xdg_activation_v1.h index 04558a08..89946d84 100644 --- a/include/wlr/types/wlr_xdg_activation_v1.h +++ b/include/wlr/types/wlr_xdg_activation_v1.h @@ -44,6 +44,8 @@ struct wlr_xdg_activation_v1 { // private state + struct wl_display *display; + struct wl_global *global; struct wl_listener display_destroy; @@ -60,4 +62,17 @@ struct wlr_xdg_activation_v1_request_activate_event { struct wlr_xdg_activation_v1 *wlr_xdg_activation_v1_create( struct wl_display *display); +struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_token_v1_create( + struct wlr_xdg_activation_v1 *activation); + +void wlr_xdg_activation_token_v1_destroy( + struct wlr_xdg_activation_token_v1 *token); + +struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_find_token( + struct wlr_xdg_activation_v1 *activation, const char *token_str); + +// Get a string suitable for exporting to launched clients +const char *wlr_xdg_activation_token_v1_get_name( + struct wlr_xdg_activation_token_v1 *token); + #endif |