From 6f25d25d325013d2940ccf6be98a170aa05bb47c Mon Sep 17 00:00:00 2001 From: Alfred Neumayer Date: Thu, 20 Oct 2022 15:36:14 +0200 Subject: [PATCH] qml: Unfocus launcher when dismissing Drawer Until now, when pressing the Super key on a keyboard, the Launcher's focus state was still set to true, causing windows not to receive input events. Unfocus the Launcher in order to cause the Stage to re-evaluate the new focus state, leading to windows receiving events again. --- qml/Launcher/Launcher.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qml/Launcher/Launcher.qml b/qml/Launcher/Launcher.qml index 8742b7de7..cf902911c 100644 --- a/qml/Launcher/Launcher.qml +++ b/qml/Launcher/Launcher.qml @@ -407,6 +407,14 @@ FocusScope { onOpenRequested: { root.toggleDrawer(false, true); } + + onFullyClosedChanged: { + if (!fullyClosed) + return + + drawer.unFocusInput() + root.focus = false + } } LauncherPanel {