swaybar: allow null status_command

Sway sets a default status_command which runs date every second. This
patch removes this behaviour so the user can have a NULL status bar if
desired.

I had to swap swaybar's event_loop_poll and wl_display_flush so that it
would map the initial surface.
This commit is contained in:
Ryan Dwyer 2018-10-08 21:40:09 +10:00
parent b3b17280de
commit 41bfd8c790
3 changed files with 3 additions and 7 deletions

View file

@ -572,8 +572,8 @@ void bar_run(struct swaybar *bar) {
add_event(bar->status->read_fd, POLLIN, status_in, bar);
}
while (1) {
event_loop_poll();
wl_display_flush(bar->display);
event_loop_poll();
}
}