swaybar: exit on display error

master
Ian Fan 6 years ago
parent ebfb1388e2
commit 9afcda59db

@ -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);
}
}

Loading…
Cancel
Save