greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.86k stars 471 forks source link

privacy(pipewire): simplify notify logic #2031

Closed MaxVerevkin closed 6 months ago

MaxVerevkin commented 6 months ago

This works because the info from the driver is fetched on each drawing iteration anyway, so notifying only waiting blocks is enough.

bim9262 commented 6 months ago

This doesn't appear to work when I test out the block.

MaxVerevkin commented 6 months ago

It worked in my limited testing, but now I see that it will not work if update happens after the fetch but before the call to wait_for_change. Eh :(

MaxVerevkin commented 6 months ago

Oh, I have an idea how to fix it.

Edit: but then the result is not much simpler that what we already have :smile: