[KRunner] prevent workspace geometry change on wayland

setPanelBehavior before setRole prevent workspace geometry change
wilder-portage-prov
Benjamin Port 6 years ago committed by Aleix Pol Gonzalez
parent 7852de5e69
commit ade3bc4aa1
  1. 2
      krunner/view.cpp

@ -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);
}
}

Loading…
Cancel
Save