From 9378dfc44ec812003c7abec5372ea9e1ff9100be Mon Sep 17 00:00:00 2001 From: bbedward Date: Wed, 2 Sep 2026 16:48:33 -0400 Subject: [PATCH] frame: keep connected chrome attached to the bar during spring overshoot --- quickshell/Common/ConnectedSurfaceGeometry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickshell/Common/ConnectedSurfaceGeometry.js b/quickshell/Common/ConnectedSurfaceGeometry.js index bbda786eb..9ec06f844 100644 --- a/quickshell/Common/ConnectedSurfaceGeometry.js +++ b/quickshell/Common/ConnectedSurfaceGeometry.js @@ -38,8 +38,8 @@ function animatedBodyRect(descriptor, dpr) { return { "x": snap(rect.x + (side === "right" ? dx : 0), dpr), "y": snap(rect.y + (side === "bottom" ? dy : 0), dpr), - "width": Math.max(0, snap(rect.width - Math.abs(dx), dpr)), - "height": Math.max(0, snap(rect.height - Math.abs(dy), dpr)), + "width": Math.max(0, snap(rect.width - (side === "left" ? -dx : dx), dpr)), + "height": Math.max(0, snap(rect.height - (side === "top" ? -dy : dy), dpr)), "dx": snap(dx, dpr), "dy": snap(dy, dpr) };