summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorminus <[email protected]>2015-08-19 01:52:46 +0200
committerminus <[email protected]>2015-08-20 15:24:33 +0200
commit91c08772645e2162015c3acf8a8ae7187502adb4 (patch)
tree542f9f0371f408fc72fbb4715ea0766770ab3fad /sway/commands.c
parentbfbadadf702c6c7f078cc2e854afa02686b91c22 (diff)
properly exit sway
- wlc_terminate() instead of exit(0) - unlink IPC socket
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 803d9a21..38557b62 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -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;
}