wezterm
wezterm copied to clipboard
Kitty image protocol visual glitches when updating placement location
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
KDE Plasma 6.1.3 (Wayland)
WezTerm version
20240203-110809-5046fc22
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
No
Describe the bug
Background
In https://github.com/ncmpcpp/ncmpcpp/pull/437, an ncurses MPD client, I've implemented album artwork via the Kitty terminal graphics protocol. When scrolling ncurses windows, any existing images on screen will also scroll, potentially offscreen. To have the image always exist at a fixed location, I update the image placement back to the desired place after every scroll event by re-transmitting the image ID and placement ID of the displayed image at the desired location.
Graphical glitches
The image remains in the correct location after scrolling, but glitches occur above or below depending on scroll direction.
Wezterm | Kitty | Konsole |
---|---|---|
To Reproduce
Unfortunately I don't have a minimal setup.
To reproduce, set up an MPD server with music containing artwork, and use https://github.com/ncmpcpp/ncmpcpp/pull/437 with the following configuration:
albumart = yes
albumart_backend = kitty
startup_screen = artwork
startup_slave_screen = playlist
startup_slave_screen_focus = yes
locked_screen_width_part = 25
Then play a song and scroll a window.
Configuration
no config
Expected Behavior
Image stays in a fixed location during ncurses scroll and doesn't exhibit glitches
Logs
No response
Anything else?
No response