aboutsummaryrefslogtreecommitdiff
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-09-17 17:00:36 +0900
committerGitHub <noreply@github.com>2016-09-17 17:00:36 +0900
commit75f82808e2e5e4950d436ff6d30a58ac9fabd599 (patch)
tree1c96a901a341a314be49844080fdb813b2e7f8b5 /swaybar/ipc.c
parent461e250e26ead67351bbecfcd94d8c0f2504a5d2 (diff)
parente4cb4d1b5cd32e9455243ee7138bf007343269c2 (diff)
Merge pull request #903 from RyanDwyer/fix-swaybar-output
Fix swaybar when running on named outputs.
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r--swaybar/ipc.c2
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) {
} else {
int j = 0;
for (j = 0; j < bar->config->outputs->length; ++j) {
- const char *conf_name = bar->config->outputs->items[i];
+ const char *conf_name = bar->config->outputs->items[j];
if (strcasecmp(name, conf_name) == 0) {
use_output = true;
break;