added sway_terminate to exit cleanly

This commit is contained in:
minus 2015-08-20 15:12:34 +02:00
parent 70f046c87a
commit f26ed32e46
5 changed files with 19 additions and 6 deletions

View file

@ -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;
}