Current behaviour: When Spotify is started after the computer is freshly booted media keys (Play/Pause, Next Track, Previous Track) work regardless of Spotify having focus or not. The currently playing track info shows up next to the volume bar. Playback is then stopped and the computer put to sleep. After wakeup playback is started again. The media keys now only work when the Spotify app has focus and no playback info shows up next to the volume bar. Initial behaviour is only restored by restarting the Spotify app.
Expected behaviour: Media keys work after sleep regardless of Spotify having focus or not. Playback info also shows up after sleep.
Fresh Windows 10 install
Fresh Spotify install (22.214.171.1249.g3809528e)
No other apps open except for Spotify, so no other influence on media playback state
I have exactly the same problem. It worked for a long time and after an update stopped working. I listen to spotify at work and regularly need to pause/play from my keyboard or short+cut keys. Requiring my to bring the app forward just to pause it to talk to someone is super annoying.
But I've had several updates since then with the same problem.