aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-19 01:52:46 +0200
committerminus <minus@mnus.de>2015-08-20 15:24:33 +0200
commit91c08772645e2162015c3acf8a8ae7187502adb4 (patch)
tree542f9f0371f408fc72fbb4715ea0766770ab3fad /sway/main.c
parentbfbadadf702c6c7f078cc2e854afa02686b91c22 (diff)
properly exit sway
- wlc_terminate() instead of exit(0) - unlink IPC socket
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index 1af1278d..a42fbcb7 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -100,13 +100,15 @@ int main(int argc, char **argv) {
free(config_path);
}
- init_ipc();
+ ipc_init();
wlc_run();
if (devnull) {
fclose(devnull);
}
+ ipc_shutdown();
+
return 0;
}