Commit ade3bc4a authored by Benjamin Port's avatar Benjamin Port Committed by Aleix Pol Gonzalez
Browse files

[KRunner] prevent workspace geometry change on wayland

setPanelBehavior before setRole prevent workspace geometry change
parent 7852de5e
......@@ -171,8 +171,8 @@ bool View::event(QEvent *event)
auto surface = KWayland::Client::Surface::fromWindow(this);
auto shellSurface = KWayland::Client::PlasmaShellSurface::get(surface);
if (shellSurface && isVisible()) {
shellSurface->setRole(KWayland::Client::PlasmaShellSurface::Role::Panel);
shellSurface->setPanelBehavior(KWayland::Client::PlasmaShellSurface::PanelBehavior::WindowsGoBelow);
shellSurface->setRole(KWayland::Client::PlasmaShellSurface::Role::Panel);
shellSurface->setPanelTakesFocus(true);
}
}
......
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