aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-20 19:31:03 +0200
committeremersion <contact@emersion.fr>2018-09-20 19:31:03 +0200
commit8a5ff5a4dbcefabaaeae98c1c53befcb986ba117 (patch)
treec3794cbf708d7fc1c41f20806f399dfc98ea8721 /swaybar/bar.c
parent82f1393cbb7383179eab2d10ff679a975d1f5c43 (diff)
swaybar: don't wl_display_roundtrip on each frame
This was the source of numerous bugs, from hotplug events not being received to segfaults because wl_display_roundtrip was making the bar process unplug events while blocking in an iteration over all outputs.
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 49a8ece1..69069f40 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -558,6 +558,7 @@ void bar_run(struct swaybar *bar) {
}
while (1) {
event_loop_poll();
+ wl_display_flush(bar->display);
}
}