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 /sway/server.c | |
parent | view: associate launch contexts with views (diff) | |
download | sway-66568508c06267445489d655c91c94a34d6d9ffe.tar.gz sway-66568508c06267445489d655c91c94a34d6d9ffe.tar.zst sway-66568508c06267445489d655c91c94a34d6d9ffe.zip |
launcher: initialize launcher_ctxs once on startup
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 042f20be..b750d10c 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -220,6 +220,8 @@ bool server_init(struct sway_server *server) { | |||
220 | wl_signal_add(&server->xdg_activation_v1->events.request_activate, | 220 | wl_signal_add(&server->xdg_activation_v1->events.request_activate, |
221 | &server->xdg_activation_v1_request_activate); | 221 | &server->xdg_activation_v1_request_activate); |
222 | 222 | ||
223 | wl_list_init(&server->pending_launcher_ctxs); | ||
224 | |||
223 | // Avoid using "wayland-0" as display socket | 225 | // Avoid using "wayland-0" as display socket |
224 | char name_candidate[16]; | 226 | char name_candidate[16]; |
225 | for (unsigned int i = 1; i <= 32; ++i) { | 227 | for (unsigned int i = 1; i <= 32; ++i) { |