quickshell: trigger column melt from target state, not float contact detection

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-06-12 09:28:16 +01:00
parent 1a71f2c07b
commit 2d43e6ed24

View file

@ -1288,12 +1288,13 @@ in
property real openH: bar.activeDropdown ? tH : 0 property real openH: bar.activeDropdown ? tH : 0
property bool snap: false property bool snap: false
readonly property real stubW: 32 readonly property real stubW: 32
// True only while the panel's right edge actually touches // Melt toward the frame column whenever a flush dropdown
// the frame column the flush shape and the column-border // is the active target the geometric melt runs during
// gap key off this, so a detaching (shrinking) panel // the approach and un-melts during departure. (A previous
// releases the column instead of dragging its border. // contact-detection compare against animated float
// geometry proved unreliable on scaled displays.)
readonly property bool mergedRight: visible && flushRight readonly property bool mergedRight: visible && flushRight
&& x + width >= bar.width - Theme.frameWidth - 0.5 && bar.activeDropdown !== null
// Grow-from / shrink-to the widget that owns the dropdown: // Grow-from / shrink-to the widget that owns the dropdown:
// the panel opens as a small stub on the button and // the panel opens as a small stub on the button and