From 5bc7efd0d9737c0cc1cbdf04c863a20639d84816 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 2 Aug 2022 13:06:37 +0200 Subject: [PATCH] KRunner: Set location before showing Make sure the location is set before showing the window to ensure the first appearance is animated correctly, too. BUG: 447096 --- krunner/view.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/krunner/view.cpp b/krunner/view.cpp index f7ba4df78..24daa6700 100644 --- a/krunner/view.cpp +++ b/krunner/view.cpp @@ -265,16 +265,14 @@ void View::positionOnScreen() y = qBound(r.top(), y, r.bottom() - height()); setPosition(x, y); + setLocation(m_floating ? Plasma::Types::Floating : Plasma::Types::TopEdge); PlasmaQuick::Dialog::setVisible(true); if (m_floating) { KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop()); KWindowSystem::setType(winId(), NET::Normal); - // Turn the sliding effect off - setLocation(Plasma::Types::Floating); } else { KWindowSystem::setOnAllDesktops(winId(), true); - setLocation(Plasma::Types::TopEdge); } KWindowSystem::forceActiveWindow(winId());