From 76302ee78ab5e1253760a073ca5129fe42973a63 Mon Sep 17 00:00:00 2001 From: Mathias Tillman Date: Mon, 6 Feb 2023 10:01:48 +0100 Subject: [PATCH] Fix an issue that caused panels and docks with the Visiblity set to Always Visible to behave the same way as Windows Go Below due to the workspace not being resized properly. --- app/wm/waylandinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/wm/waylandinterface.cpp b/app/wm/waylandinterface.cpp index 5b7e4fa78..df8d0fae6 100644 --- a/app/wm/waylandinterface.cpp +++ b/app/wm/waylandinterface.cpp @@ -303,12 +303,12 @@ void WaylandInterface::setViewStruts(QWindow &view, const QRect &rect, Plasma::T switch (location) { case Plasma::Types::TopEdge: case Plasma::Types::BottomEdge: - w->setGeometry({rect.x() + rect.width() / 2, rect.y(), 1, rect.height()}); + w->setGeometry({rect.x() + rect.width() / 2 - rect.height(), rect.y(), rect.height() + 1, rect.height()}); break; case Plasma::Types::LeftEdge: case Plasma::Types::RightEdge: - w->setGeometry({rect.x(), rect.y() + rect.height() / 2, rect.width(), 1}); + w->setGeometry({rect.x(), rect.y() + rect.height() / 2 - rect.width(), rect.width(), rect.width() + 1}); break; default: