mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
globalfocusgrab: try to close dismissed stuff to prevent focusgrab crash
This commit is contained in:
@@ -19,6 +19,11 @@ Singleton {
|
||||
property list<var> dismissable: []
|
||||
|
||||
function dismiss() {
|
||||
for (var i = 0; i < root.dismissable.length; i++) {
|
||||
const item = dismissable[i];
|
||||
if (item.close)
|
||||
item.close();
|
||||
}
|
||||
root.dismissable = [];
|
||||
root.dismissed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user