mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Modal stack: fix handling of destroyed actors
Destroyed modal actors should be completely removed from the modal stack automatically, including leaving modality if needed. This allows for destroying modal dialogs without calling close().
This commit is contained in:
parent
d5dc886748
commit
352ad8f558
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ function pushModal(actor, timestamp, options) {
|
|||
let actorDestroyId = actor.connect('destroy', function() {
|
||||
let index = _findModal(actor);
|
||||
if (index >= 0)
|
||||
modalActorFocusStack.splice(index, 1);
|
||||
popModal(actor);
|
||||
});
|
||||
let curFocus = global.stage.get_key_focus();
|
||||
let curFocusDestroyId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue