dont call syncGeometry when some cases

--dont call costly syncGeometry when drawShadows
externally is called. In such case only updating
shadows/borders is needed.
pull/3/head
Michail Vourlakos 6 years ago
parent f955c6a40c
commit be7bbfe848

@ -209,7 +209,13 @@ void DockView::init()
connect(corona(), &Plasma::Corona::availableScreenRectChanged, this, &DockView::availableScreenRectChanged);
connect(this, &DockView::behaveAsPlasmaPanelChanged, this, &DockView::syncGeometry);
connect(this, &DockView::drawShadowsChanged, this, &DockView::syncGeometry);
connect(this, &DockView::drawShadowsChanged, this, [&]() {
if (!m_behaveAsPlasmaPanel) {
syncGeometry();
} else {
updateEnabledBorders();
}
});
connect(this, &DockView::maxLengthChanged, this, &DockView::syncGeometry);
connect(this, &DockView::offsetChanged, this, &DockView::syncGeometry);
connect(this, &DockView::alignmentChanged, this, &DockView::updateEnabledBorders);

Loading…
Cancel
Save