From 2ebe0d0b63496b78c55152b9dd3f0666c2d603dd Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 10 May 2020 23:38:17 +0300 Subject: [PATCH] fix glitch from hide screen edge gap in dock mode --do not update view window geometry when there is an automatic hide screen edge gap situation because of maximized windows events --- containment/package/contents/ui/VisibilityManager.qml | 4 +++- containment/package/contents/ui/main.qml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/containment/package/contents/ui/VisibilityManager.qml b/containment/package/contents/ui/VisibilityManager.qml index e35e16d72..d6ee503bf 100644 --- a/containment/package/contents/ui/VisibilityManager.qml +++ b/containment/package/contents/ui/VisibilityManager.qml @@ -58,6 +58,8 @@ Item{ property bool inSlidingIn: false //necessary because of its init structure property alias inSlidingOut: slidingAnimationAutoHiddenOut.running property bool inTempHiding: false + property bool inScreenEdgeInternalWindowSliding: root.behaveAsDockWithMask && hideThickScreenGap + property int length: root.isVertical ? Screen.height : Screen.width //screenGeometry.height : screenGeometry.width property int slidingOutToPos: { @@ -137,7 +139,7 @@ Item{ target: latteView property:"maxThickness" //! prevents updating window geometry during closing window in wayland and such fixes a crash - when: latteView && !inTempHiding && !inForceHiding + when: latteView && !inTempHiding && !inForceHiding && !inScreenEdgeInternalWindowSliding value: root.behaveAsPlasmaPanel && !root.editMode ? thicknessAsPanel : thicknessZoomOriginal } diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index 9fe2c93ce..78cf032ce 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -100,6 +100,8 @@ Item { && !visibilityManager.inLocationAnimation); } + readonly property bool behaveAsDockWithMask: !behaveAsPlasmaPanel + property int viewType: { var staticLayout = (plasmoid.configuration.minLength === plasmoid.configuration.maxLength);