mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-11 08:58:16 +03:00
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.
This commit is contained in:
parent
906fdf796a
commit
76302ee78a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user