reset view::positioner::slideoffset for Dock case

--when the View is changing from Panel to Dock mode,
panel slideoffset should update also
work/spdx
Michail Vourlakos 4 years ago
parent a001eab39c
commit 7f994dfa7e

@ -162,6 +162,13 @@ 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::behaveAsPlasmaPanelChanged, this, [&]() {
if (!m_view->behaveAsPlasmaPanel() && m_slideOffset != 0) {
m_slideOffset = 0;
syncGeometry();
}
});
connect(m_view, &Latte::View::offsetChanged, this, [&]() {
updatePosition(m_lastAvailableScreenRect);
});

Loading…
Cancel
Save