Commit 24c90cab authored by Benjamin Port's avatar Benjamin Port Committed by Benjamin Port
Browse files

Set KRunner to be on top of above windows

bugs: 389964
parent 065c3c39
......@@ -176,6 +176,15 @@ bool View::event(QEvent *event)
if (setState) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
}
if (KWindowSystem::isPlatformWayland() && event->type() == QEvent::Expose && !static_cast<QExposeEvent*>(event)->region().isNull()) {
auto surface = KWayland::Client::Surface::fromWindow(this);
auto shellSurface = KWayland::Client::PlasmaShellSurface::get(surface);
if (shellSurface && isVisible()) {
shellSurface->setPanelBehavior(KWayland::Client::PlasmaShellSurface::PanelBehavior::WindowsGoBelow);
shellSurface->setPanelTakesFocus(true);
shellSurface->setRole(KWayland::Client::PlasmaShellSurface::Role::Panel);
}
}
return retval;
}
......
Markdown is supported
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