quickshell: restore grabFocus for click-away dismiss
Smooth close on clock click, instant dismiss on focus loss. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
96566d0319
commit
a6af5ac882
1 changed files with 3 additions and 0 deletions
|
|
@ -836,6 +836,7 @@ in
|
|||
anchor.edges: Edges.Top | Edges.Left
|
||||
anchor.gravity: Edges.Bottom | Edges.Right
|
||||
anchor.adjustment: PopupAdjustment.Slide
|
||||
grabFocus: true
|
||||
visible: false
|
||||
color: "transparent"
|
||||
|
||||
|
|
@ -849,6 +850,8 @@ in
|
|||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
open = true;
|
||||
} else {
|
||||
open = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue