Windowed after wake from sleep

I have a Beebox running Windows 10 connected to a TV and whenever it awakes from sleep, or even just have the screen sleep (and turned off), Kodi gets stuck in a window in the top left of the display.

This requires me to shut down Kodi and start it again, which has to be done with a mouse instead of just the remote, which is very annoying.