Commit 8824f3c5 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

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


(cherry picked from commit 5bc7efd0)

(cherry picked from commit eb44145d)
parent ac6f1c85
Pipeline #211834 passed with stage
in 10 minutes and 59 seconds
......@@ -256,16 +256,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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment