mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-23 10:03:43 +03:00
dont call syncGeometry if not needed in some case
This commit is contained in:
parent
fbe07f5ec1
commit
a3107b7f1c
@ -94,12 +94,17 @@ void Positioner::init()
|
||||
connect(m_view, &QQuickWindow::screenChanged, this, &Positioner::currentScreenChanged);
|
||||
connect(m_view, &QQuickWindow::screenChanged, this, &Positioner::screenChanged);
|
||||
|
||||
connect(m_view, &Latte::View::absGeometryChanged, this, &Positioner::syncGeometry);
|
||||
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::absGeometryChanged, this, [&]() {
|
||||
if (m_view->behaveAsPlasmaPanel()) {
|
||||
syncGeometry();
|
||||
}
|
||||
});
|
||||
|
||||
connect(m_view, &Latte::View::locationChanged, this, [&]() {
|
||||
updateFormFactor();
|
||||
syncGeometry();
|
||||
|
Loading…
x
Reference in New Issue
Block a user