summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <ronan@rjp.ie>2022-11-16 15:50:34 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2022-11-26 10:29:59 +0100
commit66be031f6c1c8796ca0b028be0bf3455b41951eb (patch)
tree8d7b5597f6322feea531c88d949d7c4d3405023d /include
parentview: associate launch contexts with views (diff)
downloadsway-66be031f6c1c8796ca0b028be0bf3455b41951eb.tar.gz
sway-66be031f6c1c8796ca0b028be0bf3455b41951eb.tar.zst
sway-66be031f6c1c8796ca0b028be0bf3455b41951eb.zip
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);
23 23
24void launcher_ctx_destroy(struct launcher_ctx *ctx); 24void launcher_ctx_destroy(struct launcher_ctx *ctx);
25 25
26void launcher_ctx_create(pid_t pid); 26struct launcher_ctx *launcher_ctx_create(pid_t pid);
27 27
28#endif 28#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 {
114 struct wlr_xdg_activation_v1 *xdg_activation_v1; 114 struct wlr_xdg_activation_v1 *xdg_activation_v1;
115 struct wl_listener xdg_activation_v1_request_activate; 115 struct wl_listener xdg_activation_v1_request_activate;
116 116
117 struct wl_list pending_launcher_ctxs; // launcher_ctx::link
118
117 // The timeout for transactions, after which a transaction is applied 119 // The timeout for transactions, after which a transaction is applied
118 // regardless of readiness. 120 // regardless of readiness.
119 size_t txn_timeout_ms; 121 size_t txn_timeout_ms;