mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-27 22:04:01 +03:00
fix missing calculation for behavingAsPlasmaPanel
This commit is contained in:
parent
9d30eb6257
commit
72992b8bf5
@ -604,7 +604,7 @@ void Positioner::setSlideOffset(int offset)
|
||||
slidedTopLeft = {m_validGeometry.x(), boundedY};
|
||||
|
||||
} else if (m_view->location() == Plasma::Types::RightEdge) {
|
||||
int boundedX = qMax(m_view->screenGeometry().right() - 1, m_validGeometry.x() + qAbs(m_slideOffset));
|
||||
int boundedX = qMin(m_view->screenGeometry().right() - 1, m_validGeometry.x() + qAbs(m_slideOffset));
|
||||
slidedTopLeft = {boundedX, m_validGeometry.y()};
|
||||
|
||||
} else if (m_view->location() == Plasma::Types::LeftEdge) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user