diff options
author | Ronan Pigott <ronan@rjp.ie> | 2022-11-16 15:50:34 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-26 09:48:58 +0100 |
commit | 66568508c06267445489d655c91c94a34d6d9ffe (patch) | |
tree | 90b6abe3eefb6c95c89afa554281c0fd67749db3 /include | |
parent | 864b3a9a18f236f92f1898bb44ab977ceaebfd68 (diff) |
launcher: initialize launcher_ctxs once on startup
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop/launcher.h | 2 | ||||
-rw-r--r-- | include/sway/server.h | 2 |
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 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; |