diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-05-21 18:44:21 +0200 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-05-21 18:47:47 +0200 |
commit | 352ad8f558626c98711d9f726eea656a83489dc3 (patch) | |
tree | 8e32e23d35987f0fb3da0aac4b054c3040f1f0d9 | |
parent | d5dc8867489002b8896a9c090ac27e70253b77d5 (diff) | |
download | gnome-shell-wip/screen-shield-rebase1.tar.gz |
Modal stack: fix handling of destroyed actorswip/screen-shield-rebase1
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().
-rw-r--r-- | js/ui/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/main.js b/js/ui/main.js index 8942de214..a9b6a2b6b 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -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; |