diff options
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 824b1d8e..a13f2c3a 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <wlr/util/log.h> | 19 | #include <wlr/util/log.h> |
20 | // TODO WLR: make Xwayland optional | 20 | // TODO WLR: make Xwayland optional |
21 | #include <wlr/xwayland.h> | 21 | #include <wlr/xwayland.h> |
22 | #include "list.h" | ||
22 | #include "sway/config.h" | 23 | #include "sway/config.h" |
23 | #include "sway/input/input-manager.h" | 24 | #include "sway/input/input-manager.h" |
24 | #include "sway/server.h" | 25 | #include "sway/server.h" |
@@ -105,6 +106,8 @@ bool server_init(struct sway_server *server) { | |||
105 | return false; | 106 | return false; |
106 | } | 107 | } |
107 | 108 | ||
109 | server->destroying_containers = create_list(); | ||
110 | |||
108 | input_manager = input_manager_create(server); | 111 | input_manager = input_manager_create(server); |
109 | return true; | 112 | return true; |
110 | } | 113 | } |
@@ -112,6 +115,7 @@ bool server_init(struct sway_server *server) { | |||
112 | void server_fini(struct sway_server *server) { | 115 | void server_fini(struct sway_server *server) { |
113 | // TODO: free sway-specific resources | 116 | // TODO: free sway-specific resources |
114 | wl_display_destroy(server->wl_display); | 117 | wl_display_destroy(server->wl_display); |
118 | list_free(server->destroying_containers); | ||
115 | } | 119 | } |
116 | 120 | ||
117 | void server_run(struct sway_server *server) { | 121 | void server_run(struct sway_server *server) { |