diff --git a/Modules/Panels/Launcher/Providers/ApplicationsProvider.qml b/Modules/Panels/Launcher/Providers/ApplicationsProvider.qml index 4d7515064..9082644af 100644 --- a/Modules/Panels/Launcher/Providers/ApplicationsProvider.qml +++ b/Modules/Panels/Launcher/Providers/ApplicationsProvider.qml @@ -547,9 +547,8 @@ Item { "_score": (score !== undefined ? score : 0), "provider": root, "onActivate": function () { - // Close the launcher/SmartPanel immediately without any animations. - // Ensures we are not preventing the future focusing of the app - launcher.closeImmediately(); + // Close the launcher/SmartPanel with animation. + launcher.close(); // Defer execution to next event loop iteration to ensure panel is fully closed Qt.callLater(() => { diff --git a/Modules/Panels/Launcher/Providers/CommandProvider.qml b/Modules/Panels/Launcher/Providers/CommandProvider.qml index 4d5ea3d44..afb1afda4 100644 --- a/Modules/Panels/Launcher/Providers/CommandProvider.qml +++ b/Modules/Panels/Launcher/Providers/CommandProvider.qml @@ -39,7 +39,7 @@ Item { "isTablerIcon": true, "isImage": false, "onActivate": function () { - launcher.closeImmediately(); + launcher.close(); Qt.callLater(() => { Quickshell.execDetached(["sh", "-lc", expression]); });