From 2adbf002b7eed29f11b13dfda12f482463beccae Mon Sep 17 00:00:00 2001 From: Lysec Date: Mon, 16 Mar 2026 14:49:17 +0100 Subject: [PATCH] fix(dock): adjust exclusive zone sizing --- Modules/Dock/Dock.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index 65ff6e9c0..62502b32c 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -836,8 +836,9 @@ Loader { WlrLayershell.namespace: "noctalia-dock-" + (screen?.name || "unknown") WlrLayershell.exclusionMode: exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore - // Slide animation: content slides inside a fixed window, no margin animation - property int slideDistance: (isVertical ? dockContainerWrapper.contentWidth : dockContainerWrapper.contentHeight) + floatingMargin + 10 + // Slide animation: content slides inside a fixed window, no margin animation. + // Only reserve extra space for sliding when auto-hide is enabled + property int slideDistance: autoHide ? ((isVertical ? dockContainerWrapper.contentWidth : dockContainerWrapper.contentHeight) + floatingMargin + 10) : 0 property real slideOffset: hidden ? slideDistance : 0 Behavior on slideOffset { @@ -864,7 +865,9 @@ Loader { } } - // Window sized to fit content + slide distance so content can slide off-edge + // Window sized to fit content + slide distance so content can slide off-edge. + // When auto-hide is disabled, slideDistance is 0 so the window (and thus + // the exclusion zone) matches the dock content size. implicitWidth: dockContainerWrapper.width + (isVertical ? slideDistance : 0) implicitHeight: dockContainerWrapper.height + (!isVertical ? slideDistance : 0)