aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/desktop/launcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/launcher.h')
-rw-r--r--include/sway/desktop/launcher.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h
index 7802bee1..927d7a37 100644
--- a/include/sway/desktop/launcher.h
+++ b/include/sway/desktop/launcher.h
@@ -3,10 +3,26 @@
3 3
4#include <stdlib.h> 4#include <stdlib.h>
5 5
6struct sway_workspace *workspace_for_pid(pid_t pid); 6struct launcher_ctx {
7 pid_t pid;
8 char *name;
9 struct wlr_xdg_activation_token_v1 *token;
10 struct wl_listener token_destroy;
7 11
8void launcher_ctx_create(pid_t pid); 12 struct sway_node *node;
13 struct wl_listener node_destroy;
14
15 struct wl_list link; // sway_server::pending_launcher_ctxs
16};
17
18struct launcher_ctx *launcher_ctx_find_pid(pid_t pid);
19
20struct sway_workspace *launcher_ctx_get_workspace(struct launcher_ctx *ctx);
9 21
10void remove_workspace_pid(pid_t pid); 22void launcher_ctx_consume(struct launcher_ctx *ctx);
23
24void launcher_ctx_destroy(struct launcher_ctx *ctx);
25
26void launcher_ctx_create(pid_t pid);
11 27
12#endif 28#endif