diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-18 11:22:02 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-18 11:22:02 -0500 |
commit | 733993a651c71f7e2198d505960d6bbd31e0e107 (patch) | |
tree | e51732c5872b624e73355f9e5b3f762101f3cd0d /sway/commands/exit.c | |
parent | Initial (awful) pass on xdg shell support (diff) | |
download | sway-733993a651c71f7e2198d505960d6bbd31e0e107.tar.gz sway-733993a651c71f7e2198d505960d6bbd31e0e107.tar.zst sway-733993a651c71f7e2198d505960d6bbd31e0e107.zip |
Move everything to sway/old/
Diffstat (limited to 'sway/commands/exit.c')
-rw-r--r-- | sway/commands/exit.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sway/commands/exit.c b/sway/commands/exit.c deleted file mode 100644 index f192f86a..00000000 --- a/sway/commands/exit.c +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #include "sway/commands.h" | ||
2 | #include "sway/container.h" | ||
3 | |||
4 | void sway_terminate(int exit_code); | ||
5 | |||
6 | struct cmd_results *cmd_exit(int argc, char **argv) { | ||
7 | struct cmd_results *error = NULL; | ||
8 | if (config->reading) return cmd_results_new(CMD_FAILURE, "exit", "Can't be used in config file."); | ||
9 | if ((error = checkarg(argc, "exit", EXPECTED_EQUAL_TO, 0))) { | ||
10 | return error; | ||
11 | } | ||
12 | // Close all views | ||
13 | close_views(&root_container); | ||
14 | sway_terminate(EXIT_SUCCESS); | ||
15 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | ||
16 | } | ||
17 | |||