aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-08 21:40:09 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-08 22:23:55 +1000
commit41bfd8c790e6c34dfee9c0135b2455f4ba34c619 (patch)
tree09c84d0021a8cf7a6ae62f2623ff3739e2fc824e /swaybar
parentb3b17280de54021657eabf2df4c3dbfd0039bac8 (diff)
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.
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index c86e71b8..3990f1ca 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -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();
}
}