aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
committerDrew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
commit3453910c3e887be900c69394b738e34d9d8ba095 (patch)
tree28e0d8d72557ac57a2f9aed5c94818c8ba20e97f /sway/commands.c
parent5ff3fb1c0472d974f74c0329a10895cc76c83a55 (diff)
parent67bbcceba1433e41b5edfca32532b7d55a39a395 (diff)
Merge pull request #492 from mikkeloscar/swaybar-multi-output
Display single swaybar on multiple outputs
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c9
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) {
}
if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config.");
- int i;
- swayc_t *cont = NULL;
- for (i = 0; i < root_container.children->length; ++i) {
- cont = root_container.children->items[i];
- if (cont->type == C_OUTPUT) {
- load_swaybars(cont, i);
- }
- }
+ load_swaybars();
arrange_windows(&root_container, -1, -1);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);