[krunner] Slide from the bottom side

wilder-portage
Jacopo De Simoi 5 years ago
parent 8c34d30c8e
commit 723769f313
  1. 6
      krunner/view.cpp

@ -274,9 +274,9 @@ void View::positionOnScreen()
const int w = width(); const int w = width();
int x = r.left() + (r.width() * m_offset) - (w / 2); int x = r.left() + (r.width() * m_offset) - (w / 2);
int y = r.top(); int y = r.bottom()-height();
if (m_floating) { if (m_floating) {
y += r.height() / 3; y -= r.height() / 3;
} }
x = qBound(r.left(), x, r.right() - width()); x = qBound(r.left(), x, r.right() - width());
@ -292,7 +292,7 @@ void View::positionOnScreen()
setLocation(Plasma::Types::Floating); setLocation(Plasma::Types::Floating);
} else { } else {
KWindowSystem::setOnAllDesktops(winId(), true); KWindowSystem::setOnAllDesktops(winId(), true);
setLocation(Plasma::Types::TopEdge); setLocation(Plasma::Types::BottomEdge);
} }
KWindowSystem::forceActiveWindow(winId()); KWindowSystem::forceActiveWindow(winId());

Loading…
Cancel
Save