dont update GTK_FRAME_EXTENTS for floating state

--dont update when a floating Dock is hiding its screen
edge for a maximized window.
work/spdx
Michail Vourlakos 4 years ago
parent b9b41317ca
commit 1181fc472c

@ -541,7 +541,7 @@ void VisibilityManager::onHeadThicknessChanged()
}
void VisibilityManager::publishFrameExtents(bool forceUpdate)
{
{
if (m_frameExtentsHeadThicknessGap != m_latteView->headThicknessGap()
|| m_frameExtentsLocation != m_latteView->location()
|| forceUpdate) {

@ -101,7 +101,7 @@ Item{
target: latteView
property:"normalThickness"
when: latteView && inPublishingState
value: root.behaveAsPlasmaPanel ? thicknessAsPanel : metrics.mask.thickness.maxNormalForItems
value: root.behaveAsPlasmaPanel ? thicknessAsPanel : metrics.mask.screenEdge + metrics.mask.maxNormalForItemsWithoutScreenEdge
}
Binding{
@ -120,7 +120,7 @@ Item{
return 0;
}
return metrics.mask.thickness.maxZoomed - metrics.mask.thickness.maxNormal + metrics.extraThicknessForNormal;
return metrics.mask.thickness.maxZoomed - metrics.mask.thickness.maxNormalForItems;
}
}

@ -53,15 +53,19 @@ Ability.MetricsPrivate {
mask.thickness.normal: mask.screenEdge + Math.max(totals.thickness + extraThicknessForNormal, background.thickness + background.shadows.headThickness)
mask.thickness.medium: mask.screenEdge + (1 + (0.65 * (parabolic.factor.maxZoom-1)))*(totals.thickness+extraThicknessForZoomed)
mask.thickness.zoomed: mask.screenEdge + ((totals.thickness+extraThicknessForZoomed) * parabolic.factor.maxZoom) + 2
mask.thickness.maxNormal: mask.screenEdge + maxIconSize + (margin.maxThickness * 2) + extraThicknessForNormal
mask.thickness.maxMedium: mask.screenEdge + Math.max(mask.thickness.maxNormalForItems, extraThicknessForNormal + (1 + (0.65 * (parabolic.factor.maxZoom-1)))*(maxIconSize+margin.maxThickness))
mask.thickness.maxNormal: mask.maxScreenEdge + maxIconSize + (margin.maxThickness * 2) + extraThicknessForNormal
mask.thickness.maxMedium: mask.maxScreenEdge + Math.max(mask.thickness.maxNormalForItems, extraThicknessForNormal + (1 + (0.65 * (parabolic.factor.maxZoom-1)))*(maxIconSize+margin.maxThickness))
mask.thickness.maxZoomed: mask.maxScreenEdge + Math.max( ((maxIconSize+(margin.maxThickness * 2)) * parabolic.factor.maxZoom) + extraThicknessForZoomed,
background.thickness + background.shadows.headThickness)
mask.thickness.normalForItems: margin.screenEdge + totals.thickness
mask.thickness.zoomedForItems: margin.screenEdge + (parabolic.factor.maxZoom * totals.thickness)
mask.thickness.maxNormalForItems: mask.screenEdge + maxIconSize + (margin.maxThickness * 2)
mask.thickness.maxZoomedForItems: mask.maxScreenEdge + (maxIconSize + (margin.maxThickness * 2)) * parabolic.factor.maxZoom
mask.thickness.maxNormalForItemsWithoutScreenEdge: maxIconSize + (margin.maxThickness * 2)
mask.thickness.maxZoomedForItemsWithoutScreenEdge: (maxIconSize + (margin.maxThickness * 2)) * parabolic.factor.maxZoom
mask.thickness.maxNormalForItems: mask.maxScreenEdge + mask.thickness.maxNormalForItemsWithoutScreenEdge
mask.thickness.maxZoomedForItems: mask.maxScreenEdge + mask.thickness.maxZoomedForItemsWithoutScreenEdge
//! Padding
padding.length: fraction.lengthPadding * iconSize

@ -68,6 +68,9 @@ Item {
maxNormalForItems: 48
maxMediumForItems: 48
maxZoomedForItems: 48
maxNormalForItemsWithoutScreenEdge: 48
maxZoomedForItemsWithoutScreenEdge: 48
}
}
}

@ -36,4 +36,7 @@ Item {
property int maxNormalForItems: 48
property int maxMediumForItems: 48
property int maxZoomedForItems: 48
property int maxNormalForItemsWithoutScreenEdge: 48
property int maxZoomedForItemsWithoutScreenEdge: 48
}

Loading…
Cancel
Save