mirror of
https://github.com/swaywm/sway.git
synced 2026-03-10 05:34:03 -04:00
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.
This commit is contained in:
parent
82f1393cbb
commit
8a5ff5a4db
2 changed files with 1 additions and 2 deletions
|
|
@ -558,6 +558,7 @@ void bar_run(struct swaybar *bar) {
|
|||
}
|
||||
while (1) {
|
||||
event_loop_poll();
|
||||
wl_display_flush(bar->display);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue