Skip to content

Not rendering properly and loss of keyboard shortcut control after window size changes #906

@Pommersche92

Description

@Pommersche92

Describe the bug
window size changes lead to improper rendering and loss of control (no keyboard shortcuts work anymore)

To Reproduce

  • get latest code from git
  • do a "cargo install --path ./spotify_player --features sixel,fzf,notify,pixelate"
  • after build and install, run via "spotify_player" in terminal
  • authenticate if necessary
  • now you have it running and working flawlessly
  • change terminal window size
    • rendering in terminal is now f'ed up
    • all keyboard shortcuts no longer work (only C-c)
    • song keeps playing (but no next song will play after current one ends)
    • and everything else detailed below with screenshots...

Expected behaviour

  • ui keeps rendering correctly and adapts to window size changes
  • keyboard shortcuts keep working as expected

Log and backtrace
only errors logged are at the end of the playback of the current song if the rendering issue already happened. Error is "2026-01-03T23:16:33.832493Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: request: error sending request for url (https://api.spotify.com/v1/me/player?additional_types=track%2Cepisode)". i believe this is not an actual http error, because until you resize it works flawlessly without any errors and everything works like a charm. therefore i think an error concerning the rendering occurs at the same point when the http spotify request is sent which leads to it being misclassified.

Screenshots

  1. all is good and working correctly
Image
  1. opened second terminal below, now terminal content from spotify-player is no longer rendering correctly
Image the music keeps playing, but at this point all keyboard shortcuts including "q" to quit are inoperable. C-c still works though. But spotify-player keyboard shortcuts stay inoperable on restart of the application (in old or new terminal) until i force-quit an open and broken spotify-player session via the Hyprland-Kill-Shortcut (Cmd+Shift+Q). This also happens in floating window mode on resize via window border drag. this does not happen with current version on crates.io (although there nothing functionally related to spotify (search, playback, look at album/artist/song details, etc. works atm)
  1. if i close the new terminal, spotify-player stays rendered incorrectly
Image this also happens on workspace switching if this entails a window size change, etc. sometimes the size needs to be changed 2-3 times before rendering stops working correctly, but never more than 5 times

Environment

  • OS: Manjaro, Hyprland, Kernel 6.12.63-1 (refer to screenshot with new terminal to see more)
  • Application version: current git sources clone (as of January 4th 2026, 00:14:00 CET)
  • Application features: sixel,fzf,notify,pixelate (but bug also occures when its build with default features)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions