diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sway/commands.c b/sway/commands.c index c4b7f6ab..3b8556ca 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1526,14 +1526,7 @@ static struct cmd_results *cmd_reload(int argc, char **argv) { | |||
1526 | } | 1526 | } |
1527 | if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config."); | 1527 | if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config."); |
1528 | 1528 | ||
1529 | int i; | 1529 | load_swaybars(); |
1530 | swayc_t *cont = NULL; | ||
1531 | for (i = 0; i < root_container.children->length; ++i) { | ||
1532 | cont = root_container.children->items[i]; | ||
1533 | if (cont->type == C_OUTPUT) { | ||
1534 | load_swaybars(cont, i); | ||
1535 | } | ||
1536 | } | ||
1537 | 1530 | ||
1538 | arrange_windows(&root_container, -1, -1); | 1531 | arrange_windows(&root_container, -1, -1); |
1539 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 1532 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |