aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 1439a11c..3661c637 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -419,7 +419,10 @@ void bar_run(struct swaybar *bar) {
status_in, bar);
}
while (1) {
- wl_display_flush(bar->display);
+ errno = 0;
+ if (wl_display_flush(bar->display) == -1 && errno != EAGAIN) {
+ break;
+ }
loop_poll(bar->eventloop);
}
}