diff options
Diffstat (limited to 'sway/commands/reload.c')
-rw-r--r-- | sway/commands/reload.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands/reload.c b/sway/commands/reload.c index 01fcc5ba..5bca6cde 100644 --- a/sway/commands/reload.c +++ b/sway/commands/reload.c | |||
@@ -1,10 +1,9 @@ | |||
1 | #include "sway/commands.h" | 1 | #include "sway/commands.h" |
2 | #include "sway/config.h" | 2 | #include "sway/config.h" |
3 | #include "sway/layout.h" | 3 | #include "sway/tree/layout.h" |
4 | 4 | ||
5 | struct cmd_results *cmd_reload(int argc, char **argv) { | 5 | struct cmd_results *cmd_reload(int argc, char **argv) { |
6 | struct cmd_results *error = NULL; | 6 | struct cmd_results *error = NULL; |
7 | if (config->reading) return cmd_results_new(CMD_FAILURE, "reload", "Can't be used in config file."); | ||
8 | if ((error = checkarg(argc, "reload", EXPECTED_EQUAL_TO, 0))) { | 7 | if ((error = checkarg(argc, "reload", EXPECTED_EQUAL_TO, 0))) { |
9 | return error; | 8 | return error; |
10 | } | 9 | } |
@@ -13,7 +12,6 @@ struct cmd_results *cmd_reload(int argc, char **argv) { | |||
13 | } | 12 | } |
14 | 13 | ||
15 | load_swaybars(); | 14 | load_swaybars(); |
16 | |||
17 | arrange_windows(&root_container, -1, -1); | 15 | arrange_windows(&root_container, -1, -1); |
18 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 16 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
19 | } | 17 | } |