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
pull/15/head
Michail Vourlakos 5 years ago
parent 4501c940f1
commit 2ebe0d0b63

@ -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
}

@ -100,6 +100,8 @@ Item {
&& !visibilityManager.inLocationAnimation);
}
readonly property bool behaveAsDockWithMask: !behaveAsPlasmaPanel
property int viewType: {
var staticLayout = (plasmoid.configuration.minLength === plasmoid.configuration.maxLength);

Loading…
Cancel
Save