diff options
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/main.c b/sway/main.c index 2f05dc38..fb4f0d8c 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -42,7 +42,6 @@ void sway_terminate(int exit_code) { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | void sig_handler(int signal) { | 44 | void sig_handler(int signal) { |
45 | //close_views(&root_container); | ||
46 | sway_terminate(EXIT_SUCCESS); | 45 | sway_terminate(EXIT_SUCCESS); |
47 | } | 46 | } |
48 | 47 | ||
@@ -395,7 +394,7 @@ int main(int argc, char **argv) { | |||
395 | 394 | ||
396 | wlr_log(WLR_INFO, "Starting sway version " SWAY_VERSION); | 395 | wlr_log(WLR_INFO, "Starting sway version " SWAY_VERSION); |
397 | 396 | ||
398 | root_create(); | 397 | root = root_create(); |
399 | 398 | ||
400 | if (!server_init(&server)) { | 399 | if (!server_init(&server)) { |
401 | return 1; | 400 | return 1; |
@@ -450,7 +449,8 @@ int main(int argc, char **argv) { | |||
450 | wlr_log(WLR_INFO, "Shutting down sway"); | 449 | wlr_log(WLR_INFO, "Shutting down sway"); |
451 | 450 | ||
452 | server_fini(&server); | 451 | server_fini(&server); |
453 | root_destroy(); | 452 | root_destroy(root); |
453 | root = NULL; | ||
454 | 454 | ||
455 | if (config) { | 455 | if (config) { |
456 | free_config(config); | 456 | free_config(config); |