aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/main.c
diff options
context:
space:
mode:
authorLibravatar crondog <crondog@gmail.com>2015-12-23 10:49:21 +1100
committerLibravatar crondog <crondog@gmail.com>2015-12-23 10:49:21 +1100
commitbd74320da9a3c7673a98a19003c233abcf5cf73c (patch)
treec906072a921012eda52611a4dedd9e3e84e46ba2 /swaybar/main.c
parentMerge pull request #394 from progandy/i3bar-json-protocol (diff)
downloadsway-bd74320da9a3c7673a98a19003c233abcf5cf73c.tar.gz
sway-bd74320da9a3c7673a98a19003c233abcf5cf73c.tar.zst
sway-bd74320da9a3c7673a98a19003c233abcf5cf73c.zip
Stop swaybar from not rendering after the first go around
I am not sure if this is a correct issue/fix but on my system at least after an i3bar protocol is detected this while loop never goes back around meaning it doesnt process the status line anymore.
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index 75d043b0..74930075 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -690,10 +690,9 @@ void poll_for_update() {
690 if (dirty && window_prerender(window) && window->cairo) { 690 if (dirty && window_prerender(window) && window->cairo) {
691 render(); 691 render();
692 window_render(window); 692 window_render(window);
693 } 693 if (wl_display_dispatch(registry->display) == -1) {
694 694 break;
695 if (wl_display_dispatch(registry->display) == -1) { 695 }
696 break;
697 } 696 }
698 697
699 dirty = false; 698 dirty = false;