summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2022-11-16 15:50:34 -0700
committerSimon Ser <contact@emersion.fr>2022-11-26 10:29:59 +0100
commit66be031f6c1c8796ca0b028be0bf3455b41951eb (patch)
tree8d7b5597f6322feea531c88d949d7c4d3405023d /include
parent5794a223ce9c22cee11a395bd0aa9477939becde (diff)
launcher: initialize launcher_ctxs once on startup
(cherry picked from commit 66568508c06267445489d655c91c94a34d6d9ffe)
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop/launcher.h2
-rw-r--r--include/sway/server.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h
index 927d7a37..09b27eb9 100644
--- a/include/sway/desktop/launcher.h
+++ b/include/sway/desktop/launcher.h
@@ -23,6 +23,6 @@ void launcher_ctx_consume(struct launcher_ctx *ctx);
void launcher_ctx_destroy(struct launcher_ctx *ctx);
-void launcher_ctx_create(pid_t pid);
+struct launcher_ctx *launcher_ctx_create(pid_t pid);
#endif
diff --git a/include/sway/server.h b/include/sway/server.h
index 6a5a60c8..8a3cd2f2 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -114,6 +114,8 @@ struct sway_server {
struct wlr_xdg_activation_v1 *xdg_activation_v1;
struct wl_listener xdg_activation_v1_request_activate;
+ struct wl_list pending_launcher_ctxs; // launcher_ctx::link
+
// The timeout for transactions, after which a transaction is applied
// regardless of readiness.
size_t txn_timeout_ms;