From bc2f87f82b50f2fc0d1312ff2c43e90ad7a9cfe2 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 19 Dec 2021 14:58:19 +0200 Subject: [PATCH] add comment --- app/wm/waylandinterface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/wm/waylandinterface.cpp b/app/wm/waylandinterface.cpp index 3b7770bba..a451986d1 100644 --- a/app/wm/waylandinterface.cpp +++ b/app/wm/waylandinterface.cpp @@ -424,6 +424,9 @@ void WaylandInterface::setWindowPosition(QWindow *window, const Plasma::Types::L QMargins margins; LayerShellQt::Window::Anchors anchors = 0; + //! WorkAround: Because kwin_wayland layershell suppport is working nicely only for windows + //! that are anchored on TopEdge. Anything related to Bottom and Right could fail regularly in + //! its positioning anchors = LayerShellQt::Window::AnchorTop; anchors = anchors | LayerShellQt::Window::AnchorLeft; margins.setTop(geometry.top() - window->screen()->geometry().top());