mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
swaybar: exit on display error
This commit is contained in:
parent
ebfb1388e2
commit
9afcda59db
1 changed files with 4 additions and 1 deletions
|
@ -419,7 +419,10 @@ void bar_run(struct swaybar *bar) {
|
||||||
status_in, bar);
|
status_in, bar);
|
||||||
}
|
}
|
||||||
while (1) {
|
while (1) {
|
||||||
wl_display_flush(bar->display);
|
errno = 0;
|
||||||
|
if (wl_display_flush(bar->display) == -1 && errno != EAGAIN) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
loop_poll(bar->eventloop);
|
loop_poll(bar->eventloop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue