Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images opened in an unfocussed Tmux window (via script) are overlaid on top of the active window #213

Open
twidxuga opened this issue Aug 6, 2024 · 2 comments · May be fixed by #215
Open

Comments

@twidxuga
Copy link
Contributor

twidxuga commented Aug 6, 2024

Thanks again for all the good work, and for quickly merging my previous patch.

I found that images opened in an unfocussed Tmux window (via script) are overlaid on top of the active/focussed window, instead of remaining hidden. Not only that, but they are overlaid at a strange position in the active window, that has no relation to the position they would normally have in their own window,pane and session.

The problem case is: I have Tmux session with a window for a music player (ncmpcpp) and a pane with ueberzugpp to display cover art. When the window is focussed, if the song changes, the cover changes in the correct pane and position, as expected. However, if I have another window focussed (in the same session or in another session), when the song changes, the cover is displayed overlaid on top of the active/focussed window at a strange position, instead of remaining tied to the pane, window, session and position with which it was generated. Note: In this example, every time a new cover image is displayed, a new ueberzugpp layer and socket are created.

I checked that this was not the case with the original ueberzug, since with it, if an image is generated in an unfocussed window/session/pane it will remain hidden, and it will be shown back in the correct position if the window is focussed again.

Cheers!

@twidxuga twidxuga changed the title Images opened in an unfocussed tmux window (via script) are overlaid on top of the active window Images opened in an unfocussed Tmux window (via script) are overlaid on top of the active window Aug 6, 2024
@twidxuga
Copy link
Contributor Author

twidxuga commented Aug 6, 2024

I also checked that this is not a consequence of PR 212, since the issue already existed before it was merged.

@twidxuga
Copy link
Contributor Author

twidxuga commented Aug 6, 2024

I'm working on a patch for this. Will make PR soon.

@twidxuga twidxuga changed the title Images opened in an unfocussed Tmux window (via script) are overlaid on top of the active window Images opened from an unfocussed Tmux window (via script) are overlaid on top of the active window Aug 6, 2024
@twidxuga twidxuga changed the title Images opened from an unfocussed Tmux window (via script) are overlaid on top of the active window Images opened in an unfocussed Tmux window (via script) are overlaid on top of the active window Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant