diff options
author | 2016-09-17 17:00:36 +0900 | |
---|---|---|
committer | 2016-09-17 17:00:36 +0900 | |
commit | 75f82808e2e5e4950d436ff6d30a58ac9fabd599 (patch) | |
tree | 1c96a901a341a314be49844080fdb813b2e7f8b5 /swaybar | |
parent | Merge pull request #902 from zandrmartin/patch-2 (diff) | |
parent | Fix swaybar when running on named outputs. (diff) | |
download | sway-75f82808e2e5e4950d436ff6d30a58ac9fabd599.tar.gz sway-75f82808e2e5e4950d436ff6d30a58ac9fabd599.tar.zst sway-75f82808e2e5e4950d436ff6d30a58ac9fabd599.zip |
Merge pull request #903 from RyanDwyer/fix-swaybar-output
Fix swaybar when running on named outputs.
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index bce9dc79..2c092853 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c | |||
@@ -278,7 +278,7 @@ void ipc_bar_init(struct bar *bar, const char *bar_id) { | |||
278 | } else { | 278 | } else { |
279 | int j = 0; | 279 | int j = 0; |
280 | for (j = 0; j < bar->config->outputs->length; ++j) { | 280 | for (j = 0; j < bar->config->outputs->length; ++j) { |
281 | const char *conf_name = bar->config->outputs->items[i]; | 281 | const char *conf_name = bar->config->outputs->items[j]; |
282 | if (strcasecmp(name, conf_name) == 0) { | 282 | if (strcasecmp(name, conf_name) == 0) { |
283 | use_output = true; | 283 | use_output = true; |
284 | break; | 284 | break; |