quickshell: flush dropdowns spawn from their own button again — the SDF melt handles arrival
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
a514893f3e
commit
bfcc54d0db
1 changed files with 6 additions and 7 deletions
|
|
@ -1213,19 +1213,18 @@ in
|
|||
function stubX(dd) {
|
||||
return Math.round(Math.min(bar.width - Theme.frameWidth - stubW, Math.max(Theme.frameWidth, dd.dropdownX - stubW / 2)));
|
||||
}
|
||||
// Flush dropdowns keep their right edge welded to the
|
||||
// frame column: they grow down-and-left from a stub
|
||||
// parked at the column and shrink back into it. (x and
|
||||
// width share one animation curve, so x+width — the right
|
||||
// edge — is constant mid-flight.)
|
||||
// All dropdowns grow from / shrink to their own widget —
|
||||
// flush ones melt onto the frame column as they expand
|
||||
// (the SDF chrome makes that junction liquid, so the old
|
||||
// corner-parked seed workaround is unnecessary).
|
||||
function seedFromButton(dd) {
|
||||
snap = true;
|
||||
tX = dd.alignRight ? bar.width - Theme.frameWidth - stubW : stubX(dd);
|
||||
tX = stubX(dd);
|
||||
tW = stubW;
|
||||
snap = false;
|
||||
}
|
||||
function shrinkToButton(dd) {
|
||||
tX = dd.alignRight ? bar.width - Theme.frameWidth - stubW : stubX(dd);
|
||||
tX = stubX(dd);
|
||||
tW = stubW;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue