Commit 5bc7efd0 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
parent 366a5b2d
Pipeline #211822 passed with stage
in 17 minutes and 15 seconds
......@@ -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());
......
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