1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-05 17:47:23 +03:00

fixes for hideThickScreenGap in Dock mode

This commit is contained in:
Michail Vourlakos 2020-08-22 14:40:15 +03:00
parent ab1aa51fce
commit 0aa5aaec64
2 changed files with 4 additions and 3 deletions

View File

@ -74,8 +74,7 @@ Item{
property int finalScreenEdgeMargin: {
//! is used for window geometry calculations
if (!screenEdgeMarginEnabled
|| (hideThickScreenGap && metrics.margin.screenEdge === 0)) {
if (!screenEdgeMarginEnabled || hideThickScreenGap) {
/*window geometry is updated after the local screen margin animation was zeroed*/
return 0;
}

View File

@ -502,7 +502,9 @@ Item {
Binding{
target: root
property: "hideLengthScreenGaps"
when: latteView && latteView.positioner && latteView.visibility && (latteView.positioner.slideOffset === 0)
when: latteView && latteView.positioner && latteView.visibility
&& ((root.behaveAsPlasmaPanel && latteView.positioner.slideOffset === 0)
|| root.behaveAsDockWithMask)
value: (hideThickScreenGap
&& (latteView.visibility.mode === LatteCore.Types.AlwaysVisible
|| latteView.visibility.mode === LatteCore.Types.WindowsGoBelow)