From ade3bc4aa1efb8c5db9a7c9f3356b4e79df6cc43 Mon Sep 17 00:00:00 2001 From: Benjamin Port Date: Tue, 7 Jul 2020 14:30:23 +0200 Subject: [PATCH] [KRunner] prevent workspace geometry change on wayland setPanelBehavior before setRole prevent workspace geometry change --- krunner/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/krunner/view.cpp b/krunner/view.cpp index 1ab9272a8..8ea6a7b56 100644 --- a/krunner/view.cpp +++ b/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); } }