[gnome-shell] ScreenShield: clear the lock screen early when deactivating
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ScreenShield: clear the lock screen early when deactivating
- Date: Sun, 12 May 2013 18:19:21 +0000 (UTC)
commit 61fe000daaad5c4d9d7c1131d82ec30bd9f5583f
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun May 12 19:41:21 2013 +0200
ScreenShield: clear the lock screen early when deactivating
Upon popMode, MessageTray will try readding all notifications
to their rightful parent, so we must tell NotificationBox to
relinquish them before st_bin_set_child() fails (leaving a dangling
child pointer and crashing at the next allocation)
https://bugzilla.gnome.org/show_bug.cgi?id=698812
js/ui/screenShield.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index d7e020b..5b3ed95 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1115,6 +1115,9 @@ const ScreenShield = new Lang.Class({
deactivate: function(animate) {
this._hideLockScreen(animate, 0);
+ if (this._hasLockScreen)
+ this._clearLockScreen();
+
if (Main.sessionMode.currentMode == 'lock-screen')
Main.sessionMode.popMode('lock-screen');
if (Main.sessionMode.currentMode == 'unlock-dialog')
@@ -1131,9 +1134,6 @@ const ScreenShield = new Lang.Class({
},
_completeDeactivate: function() {
- if (this._hasLockScreen)
- this._clearLockScreen();
-
if (this._dialog && !this._isGreeter) {
this._dialog.destroy();
this._dialog = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]