properly exit sway

- wlc_terminate() instead of exit(0)
- unlink IPC socket
This commit is contained in:
minus 2015-08-19 01:52:46 +02:00
parent bfbadadf70
commit 91c0877264
4 changed files with 22 additions and 10 deletions

View file

@ -186,7 +186,7 @@ static bool cmd_exit(struct sway_config *config, int argc, char **argv) {
}
// Close all views
container_map(&root_container, kill_views, NULL);
exit(0);
wlc_terminate();
return true;
}