diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 24d56052..13bc7dc2 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1094,6 +1094,15 @@ static struct cmd_results *cmd_reload(int argc, char **argv) { | |||
1094 | } | 1094 | } |
1095 | if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config."); | 1095 | if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config."); |
1096 | 1096 | ||
1097 | int i; | ||
1098 | swayc_t *cont = NULL; | ||
1099 | for (i = 0; i < root_container.children->length; ++i) { | ||
1100 | cont = root_container.children->items[i]; | ||
1101 | if (cont->type == C_OUTPUT) { | ||
1102 | load_swaybars(cont, i); | ||
1103 | } | ||
1104 | } | ||
1105 | |||
1097 | arrange_windows(&root_container, -1, -1); | 1106 | arrange_windows(&root_container, -1, -1); |
1098 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 1107 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
1099 | } | 1108 | } |