diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-11-16 15:50:34 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-11-16 15:50:34 -0700 |
| commit | d3611eedc040f63a860aedbbcdcf088a3419ca86 (patch) | |
| tree | 8d7b5597f6322feea531c88d949d7c4d3405023d /include | |
| parent | 7924c712bb1e0d3233c0604b2e641ca4db7d55a3 (diff) | |
launcher: initialize launcher_ctxs once on startup
(cherry picked from commit 66568508c06267445489d655c91c94a34d6d9ffe)
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 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; |
