mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #906] Not rendering properly and loss of keyboard shortcut control after window size changes #1483
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Pommersche92 on GitHub (Jan 3, 2026).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/906
Describe the bug
window size changes lead to improper rendering and loss of control (no keyboard shortcuts work anymore)
To Reproduce
Expected behaviour
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
all is good and working correctly

opened second terminal below, now terminal content from spotify-player is no longer rendering correctly

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)
if i close the new terminal, spotify-player stays rendered incorrectly

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
Additional context
Add any other context about the problem here.
@Pommersche92 commented on GitHub (Jan 3, 2026):
I am not proficient with Rust yet, otherwise i might have tried fixing it myself. If there is however anything else I can do to help, I am happy to.
P.S. when i say above that the current crates.io build does not suffer from this issue, i mean it does not on the exact same rig with same hardware / drivers / peripherals / etc.