fix published absolute geometry in !compositing

--absolute geometry is the published area that the
dock/panel occupies when it is shown. So it should
not change when the dock becomes hidden. This patch
fixes the case for the !compositing environment.
pull/8/head
Michail Vourlakos 6 years ago
parent 7644e67b35
commit bab3e9126e

@ -93,7 +93,7 @@ Item{
//! give some more space when items shadows are enabled and extremely big //! give some more space when items shadows are enabled and extremely big
if (root.enableShadows && root.maxThickMargin < shadowMaxNeededMargin) { if (root.enableShadows && root.maxThickMargin < shadowMaxNeededMargin) {
return shadowMaxNeededMargin - root.maxThickMargin; return shadowMaxNeededMargin - root.maxThickMargin;
} }
return 0; return 0;
@ -575,8 +575,7 @@ Item{
//the shadows size must be removed from the maskArea //the shadows size must be removed from the maskArea
//before updating the localDockGeometry //before updating the localDockGeometry
if ((!latteView.behaveAsPlasmaPanel || root.editMode) if (!latteView.behaveAsPlasmaPanel || root.editMode) {
&& Latte.WindowSystem.compositingActive) {
var fixedThickness = root.editMode ? root.iconSize + root.thickMargins : root.realPanelThickness; var fixedThickness = root.editMode ? root.iconSize + root.thickMargins : root.realPanelThickness;
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
@ -600,7 +599,6 @@ Item{
} }
//console.log("update geometry ::: "+tempGeometry); //console.log("update geometry ::: "+tempGeometry);
latteView.localGeometry = tempGeometry; latteView.localGeometry = tempGeometry;
} }
} }

Loading…
Cancel
Save