1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

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
This commit is contained in:
Michail Vourlakos 2020-05-10 23:38:17 +03:00
parent 4501c940f1
commit 2ebe0d0b63
2 changed files with 5 additions and 1 deletions

View File

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

View File

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