summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-11-30 11:54:15 -0700
committerFurkan Sahin <furkan-dev@proton.me>2022-11-30 11:54:15 -0700
commit2423a0ea97459c8ce4bb613dcaa6b38f122d0830 (patch)
tree7f351e5f705ef6c1fda746c608552d3dfae1dde5 /include
parentde472c10c1472dfcf96de35c0b2e460c69aa6c6c (diff)
launcher: make launcher context seat aware
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop/launcher.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h
index d5651adf..b7716e82 100644
--- a/include/sway/desktop/launcher.h
+++ b/include/sway/desktop/launcher.h
@@ -6,7 +6,7 @@
struct launcher_ctx {
pid_t pid;
- char *name;
+ char *fallback_name;
struct wlr_xdg_activation_token_v1 *token;
struct wl_listener token_destroy;
@@ -26,7 +26,10 @@ void launcher_ctx_consume(struct launcher_ctx *ctx);
void launcher_ctx_destroy(struct launcher_ctx *ctx);
-struct launcher_ctx *launcher_ctx_create(void);
+struct launcher_ctx *launcher_ctx_create_internal(void);
+
+struct launcher_ctx *launcher_ctx_create(
+ struct wlr_xdg_activation_token_v1 *token, struct sway_node *node);
const char *launcher_ctx_get_token_name(struct launcher_ctx *ctx);