diff options
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r-- | swaybar/bar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index 88de8c04..08c386a7 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c | |||
@@ -415,7 +415,10 @@ void bar_run(struct swaybar *bar) { | |||
415 | status_in, bar); | 415 | status_in, bar); |
416 | } | 416 | } |
417 | while (1) { | 417 | while (1) { |
418 | wl_display_flush(bar->display); | 418 | errno = 0; |
419 | if (wl_display_flush(bar->display) == -1 && errno != EAGAIN) { | ||
420 | break; | ||
421 | } | ||
419 | loop_poll(bar->eventloop); | 422 | loop_poll(bar->eventloop); |
420 | } | 423 | } |
421 | } | 424 | } |