launcher: initialize launcher_ctxs once on startup

This commit is contained in:
Ronan Pigott 2022-11-16 15:50:34 -07:00 committed by Simon Ser
parent 864b3a9a18
commit 66568508c0
5 changed files with 13 additions and 12 deletions

View file

@ -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

View file

@ -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;