mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
swaybar: exit on display error
This commit is contained in:
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…
Reference in a new issue