OSD: Close on focus lost
The OSD is closed when the active window is changed from the OSD to another window.
This happens if the user clicks outside the OSD. This mimics the behaviour of modal dialogs.
This also happens with actions such as Alt+Tab. It is currently quite annoying to close the OSD once the window has lost focus. There is no close button and the window consists of ~90% click targets.
(cherry picked from commit 971630db)
b14e3cc3 OSD: Close on focus lost b4b9a34a Minor refactoring
Co-authored-by: Fabian Arndt fabian.arndt@root-core.net