launcher: export xdga tokens and use them for workspace matching

(cherry picked from commit 30ad4dc4a5)
This commit is contained in:
Ronan Pigott 2022-11-18 20:05:24 -07:00 committed by Simon Ser
parent ee9266cf8c
commit 97423ca9c7
4 changed files with 38 additions and 2 deletions

View file

@ -9,6 +9,8 @@ struct launcher_ctx {
struct wlr_xdg_activation_token_v1 *token;
struct wl_listener token_destroy;
bool activated;
struct sway_node *node;
struct wl_listener node_destroy;
@ -25,4 +27,6 @@ void launcher_ctx_destroy(struct launcher_ctx *ctx);
struct launcher_ctx *launcher_ctx_create(void);
const char *launcher_ctx_get_token_name(struct launcher_ctx *ctx);
#endif