aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorcrondog <crondog@gmail.com>2015-12-23 10:49:21 +1100
committercrondog <crondog@gmail.com>2015-12-23 10:49:21 +1100
commitbd74320da9a3c7673a98a19003c233abcf5cf73c (patch)
treec906072a921012eda52611a4dedd9e3e84e46ba2 /swaybar
parent27848b41ab9552b7894bdd32c3cdaa490a864446 (diff)
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')
-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() {
if (dirty && window_prerender(window) && window->cairo) {
render();
window_render(window);
- }
-
- if (wl_display_dispatch(registry->display) == -1) {
- break;
+ if (wl_display_dispatch(registry->display) == -1) {
+ break;
+ }
}
dirty = false;