From 66568508c06267445489d655c91c94a34d6d9ffe Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 16 Nov 2022 15:50:34 -0700 Subject: launcher: initialize launcher_ctxs once on startup --- include/sway/desktop/launcher.h | 2 +- include/sway/server.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 11f6b882..6f29b3f5 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -116,6 +116,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; -- cgit v1.2.3