diff --git a/components/mobileshell/qml/components/StartupFeedback.qml b/components/mobileshell/qml/components/StartupFeedback.qml index c882eda4..f9bd60c9 100644 --- a/components/mobileshell/qml/components/StartupFeedback.qml +++ b/components/mobileshell/qml/components/StartupFeedback.qml @@ -10,9 +10,9 @@ import Qt5Compat.GraphicalEffects import org.kde.kirigami 2.13 as Kirigami -import org.kde.plasma.private.nanoshell 2.0 as NanoShell import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings -import org.kde.plasma.private.mobileshell.state 1.0 as MobileShellState +import org.kde.plasma.private.mobileshell.state as MobileShellState +import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin /** * Component that animates an app opening from a location. @@ -64,15 +64,15 @@ MouseArea { // use mousearea to ensure clicks don't go behind } // open startupfeedback when notifier gives an app - // Connections { - // target: NanoShell.StartupNotifier - // enabled: NanoShell.StartupNotifier.isValid - // - // function onActivationStarted(appId, iconName) { - // icon.source = iconName - // openAnimSimple.restart(); - // } - // } + Connections { + target: WindowPlugin.WindowUtil + + function onAppActivationStarted(appId, iconName) { + console.log(appId); + icon.source = iconName + openAnimSimple.restart(); + } + } Kirigami.ImageColors { id: colorGenerator diff --git a/components/windowplugin/windowutil.cpp b/components/windowplugin/windowutil.cpp index 252bf013..13f9182c 100644 --- a/components/windowplugin/windowutil.cpp +++ b/components/windowplugin/windowutil.cpp @@ -80,6 +80,11 @@ void WindowUtil::initWayland() connect(iface, &PlasmaActivationFeedback::activation, this, [this](PlasmaActivation *activation) { connect(activation, &PlasmaActivation::applicationId, this, [this](const QString &appId) { + // do not show activation screen for the plasmashell process + if (appId == "org.kde.plasmashell") { + return; + } + const auto servicesFound = KApplicationTrader::query([&appId](const KService::Ptr &service) { if (service->exec().isEmpty()) return false;