DIM screensaver doesn't deactivates after a while

Description

Sometimes the DIM screensaver stays active and ignores that the "user is back".

I've tried to reproduced it right after the Kodi startup but it seems that this issue is only happening after a while and running Kodi for a couple of minutes incl. being active in the gui.
It took me a while to capture it with a debug log.

A skin reload is enough to kill the screensaver. Sometimes is enough to change the window.