aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-20 15:12:34 +0200
committerminus <minus@mnus.de>2015-08-20 15:27:56 +0200
commitf26ed32e460f3007e623c529d28562f4a0b261cd (patch)
tree20194ff714e5351a435746b89aab17a9944dc934 /sway/commands.c
parent70f046c87a1fc03c3b3132bf3b05d2e4c4495805 (diff)
added sway_terminate to exit cleanly
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c3
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 @@
#include "commands.h"
#include "container.h"
#include "handlers.h"
+#include "sway.h"
struct modifier_key {
char *name;
@@ -186,7 +187,7 @@ static bool cmd_exit(struct sway_config *config, int argc, char **argv) {
}
// Close all views
container_map(&root_container, kill_views, NULL);
- wlc_terminate();
+ sway_terminate();
return true;
}