Covers rendering ontop of other tmux windows when unfocused
Closed this issue · 4 comments
Expected Behavior
Rendered covers to be not visible when rmpc is on an unfocused tmux window
Actual Behavior
When rmpc is open in another window in tmux and the song changes, the cover will be rendered on top of the current tmux pane until the current rmpc instance is quit.
Steps to reproduce:
- Open two tmux windows.
- Run rmpc in one of them.
- Play music.
- Move to the other window.
- run "rmpc next".
Specifications
Version: rmpc 0.4.0
Platform: Nixos Unstable
Additional info:
Terminal: Alacritty 0.13.2
Screenshots:
Right, this happens because ueberzugpp runs in a separate process and rmpc does not detect that it is not in an active tmux pane. I will see if I can somehow detect that.
Anyway, this should really only happen in terminals not supported by other protocols like kitty.
There is also related issue jstkdng/ueberzugpp#213 and pull request jstkdng/ueberzugpp#215 on ueberzugpp side which could resolve this issue.
Fixed by #95
Unfortunately the fix is not perfect. When you repeat your steps to reproduce and then switch back to rmpc, the album art will be the same as when you have moved to the other window. Simply switching to another tab in rmpc and back will refresh it though.
I will eventually improve on this, but this should make it at least usable.
great, thanks a lot!