From 246b6c44b0357783fe447855a600c5cf2f473dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tri=E1=BB=87u=20Kha?= Date: Wed, 4 Mar 2026 04:11:06 +0700 Subject: [PATCH] fix(dock): Dock flickering when having cursor floating by the side (#1897) --- quickshell/Modules/Dock/Dock.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quickshell/Modules/Dock/Dock.qml b/quickshell/Modules/Dock/Dock.qml index 4d37385b..a116fc6e 100644 --- a/quickshell/Modules/Dock/Dock.qml +++ b/quickshell/Modules/Dock/Dock.qml @@ -447,9 +447,8 @@ Variants { height: { if (dock.isVertical) { - if (!dock.reveal) - return Math.min(Math.max(dockBackground.height + 64, 200), screenHeight * 0.5); - return Math.min(dockBackground.height + 8 + dock.borderThickness, maxDockHeight); + // Keep the taller hit area regardless of the reveal state to prevent shrinking loop + return Math.min(Math.max(dockBackground.height + 64, 200), screenHeight * 0.5); } return dock.reveal ? px(dock.effectiveBarHeight + SettingsData.dockSpacing + SettingsData.dockBottomGap + SettingsData.dockMargin) : 1; } @@ -457,8 +456,7 @@ Variants { if (dock.isVertical) { return dock.reveal ? px(dock.effectiveBarHeight + SettingsData.dockSpacing + SettingsData.dockBottomGap + SettingsData.dockMargin) : 1; } - if (!dock.reveal) - return Math.min(Math.max(dockBackground.width + 64, 200), screenWidth * 0.5); + // Keep the wider hit area regardless of the reveal state to prevent shrinking loop return Math.min(dockBackground.width + 8 + dock.borderThickness, maxDockWidth); } anchors {