Merge pull request #2925 from ianyfan/swaylock

swaylock: exit early if unable to get input inhibitor
This commit is contained in:
Drew DeVault 2018-10-24 18:54:22 +02:00 committed by GitHub
commit 41f744c224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

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