From 4c59f7d46a949548caa55805b00922f846d58525 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 11 Nov 2021 15:31:27 +0100 Subject: xdg-activation: Allow to submit tokens Allows the compositor to submit tokens to the pool of currently active tokens. This can be useful when the launcher doesn't use or support xdg-activation-v1 by itself - e.g. when it is X11 based or use gtk_shell1. --- include/wlr/types/wlr_xdg_activation_v1.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_xdg_activation_v1.h b/include/wlr/types/wlr_xdg_activation_v1.h index 46356215..97801af2 100644 --- a/include/wlr/types/wlr_xdg_activation_v1.h +++ b/include/wlr/types/wlr_xdg_activation_v1.h @@ -81,4 +81,8 @@ struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_find_token( const char *wlr_xdg_activation_token_v1_get_name( struct wlr_xdg_activation_token_v1 *token); +// Add a token to the pool of known tokens +struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_add_token( + struct wlr_xdg_activation_v1 *activation, const char *token_str); + #endif -- cgit v1.2.3