mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-13 16:58:17 +03:00
improvements for calculations
This commit is contained in:
parent
ff01f266e4
commit
ca0e065441
@ -157,8 +157,10 @@ void Positioner::init()
|
||||
|
||||
connect(m_view, &Latte::View::behaveAsPlasmaPanelChanged, this, &Positioner::syncGeometry);
|
||||
connect(m_view, &Latte::View::maxThicknessChanged, this, &Positioner::syncGeometry);
|
||||
connect(m_view, &Latte::View::maxLengthChanged, this, &Positioner::syncGeometry);
|
||||
connect(m_view, &Latte::View::offsetChanged, this, &Positioner::syncGeometry);
|
||||
|
||||
connect(m_view, &Latte::View::offsetChanged, this, [&]() {
|
||||
updatePosition(m_lastAvailableScreenRect);
|
||||
});
|
||||
|
||||
connect(m_view, &Latte::View::locationChanged, this, [&]() {
|
||||
updateFormFactor();
|
||||
@ -169,6 +171,12 @@ void Positioner::init()
|
||||
updateCanvasGeometry(m_lastAvailableScreenRect);
|
||||
});
|
||||
|
||||
connect(m_view, &Latte::View::maxLengthChanged, this, [&]() {
|
||||
if (m_view->behaveAsPlasmaPanel()) {
|
||||
syncGeometry();
|
||||
}
|
||||
});
|
||||
|
||||
connect(m_view, &Latte::View::normalThicknessChanged, this, [&]() {
|
||||
if (m_view->behaveAsPlasmaPanel()) {
|
||||
syncGeometry();
|
||||
|
Loading…
x
Reference in New Issue
Block a user