2hdddg / zenway

WIP sway bar alternative that is not really a bar but an overlay displayed on top of workspaces
21 stars 1 forks source link

Fix crash in audio source #3

Closed 2hdddg closed 9 months ago

2hdddg commented 9 months ago

Pulse Audio source is currently the only source that has its own thread to poll for changes. Embedded Lua is not thread safe so at some cases publishing audio source changes on that thread caused the program to crash. This refactors to make sure that publishing of source states to Lua always happens on main thread.