mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -04:00
Tear down bar when display exits
This commit is contained in:
parent
0464a9910d
commit
da6e48520b
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,8 @@ static void render_all_frames(struct swaybar *bar) {
|
|||
static void display_in(int fd, short mask, void *_bar) {
|
||||
struct swaybar *bar = (struct swaybar *)_bar;
|
||||
if (wl_display_dispatch(bar->display) == -1) {
|
||||
wlr_log(L_ERROR, "failed to dispatch wl: %d", errno);
|
||||
bar_teardown(bar);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue