1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 14:50:21 +03:00

add comment

This commit is contained in:
Michail Vourlakos 2021-12-19 14:58:19 +02:00
parent e28138aa59
commit bc2f87f82b

View File

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