[gnome-shell] Modal stack: fix handling of destroyed actors
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Modal stack: fix handling of destroyed actors
- Date: Sat, 21 Jul 2012 13:41:18 +0000 (UTC)
commit f5e58c500fc0e67f68e8c71e9750c00f51d63fac
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon May 21 18:44:21 2012 +0200
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().
https://bugzilla.gnome.org/show_bug.cgi?id=619955
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 501af04..0b12d75 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -683,7 +683,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]