Let the notch drop vanish fully before its panel unmaps

At high closing speeds the last frame still held a small bead, which
Hyprland's layer fade-out then faded away. The bead now shrinks into
the island and the drawer unmaps once it is empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-26 14:27:32 +01:00
1 parent 604424869d
commit 972ab1120e
2 files changed
+9 -3

No files matched your search

+3 -1
View File
@@ -36,7 +36,9 @@ Item {
// Drop moves down on the way in and on the way out.
property real dropFrom: -1
onOpenChanged: dropFrom = open ? -1 : 1
readonly property bool shown: progress > 0.001
// The drop is already empty below 0.02; unmapping there means Hyprland's
// fade-out has nothing left to fade.
readonly property bool shown: progress > (liquid ? 0.02 : 0.001)
// NotchDrop's content fade: in once the panel has its size, out first.
readonly property real dropContent: {
const t = Math.min(1, Math.max(0, (progress - 0.82) / 0.18));