diff options
author | 2015-08-20 15:12:34 +0200 | |
---|---|---|
committer | 2015-08-20 15:27:56 +0200 | |
commit | f26ed32e460f3007e623c529d28562f4a0b261cd (patch) | |
tree | 20194ff714e5351a435746b89aab17a9944dc934 /sway/commands.c | |
parent | set IPC client sockets to close on exec (diff) | |
download | sway-f26ed32e460f3007e623c529d28562f4a0b261cd.tar.gz sway-f26ed32e460f3007e623c529d28562f4a0b261cd.tar.zst sway-f26ed32e460f3007e623c529d28562f4a0b261cd.zip |
added sway_terminate to exit cleanly
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 38557b62..644b8005 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "commands.h" | 15 | #include "commands.h" |
16 | #include "container.h" | 16 | #include "container.h" |
17 | #include "handlers.h" | 17 | #include "handlers.h" |
18 | #include "sway.h" | ||
18 | 19 | ||
19 | struct modifier_key { | 20 | struct modifier_key { |
20 | char *name; | 21 | char *name; |
@@ -186,7 +187,7 @@ static bool cmd_exit(struct sway_config *config, int argc, char **argv) { | |||
186 | } | 187 | } |
187 | // Close all views | 188 | // Close all views |
188 | container_map(&root_container, kill_views, NULL); | 189 | container_map(&root_container, kill_views, NULL); |
189 | wlc_terminate(); | 190 | sway_terminate(); |
190 | return true; | 191 | return true; |
191 | } | 192 | } |
192 | 193 | ||