From 8e7aab901b68aac7d2c3c8a81ed9036ef9809411 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Mon, 17 Apr 2023 14:56:09 +0000 Subject: [PATCH] Don't create Plasma activation feedback if StartupNotify is false Prevents a spinning circle in the task manager for such tasks. cc @nicolasfella --- src/xdgactivationv1.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xdgactivationv1.cpp b/src/xdgactivationv1.cpp index 63ab5240da..67dc39be40 100644 --- a/src/xdgactivationv1.cpp +++ b/src/xdgactivationv1.cpp @@ -104,7 +104,11 @@ QString XdgActivationV1Integration::requestToken(bool isPrivileged, SurfaceInter } icon = QIcon::fromTheme(df.readIcon(), icon); } - m_currentActivationToken.reset(new ActivationToken{newToken, isPrivileged, surface, serial, seat, appId, showNotify, waylandServer()->plasmaActivationFeedback()->createActivation(appId)}); + std::unique_ptr activation; + if (showNotify) { + activation = waylandServer()->plasmaActivationFeedback()->createActivation(appId); + } + m_currentActivationToken.reset(new ActivationToken{newToken, isPrivileged, surface, serial, seat, appId, showNotify, std::move(activation)}); if (showNotify) { Q_EMIT effects->startupAdded(m_currentActivationToken->token, icon); }