[gnome-shell/gbsneto/new-lock-screen: 10/23] screenShield: Move background to _screenDialogGroup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen: 10/23] screenShield: Move background to _screenDialogGroup
- Date: Thu, 10 Oct 2019 19:32:35 +0000 (UTC)
commit 10a194e6ed8d9ec75a575b8affd5495476c508c2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 7 14:32:31 2019 -0300
screenShield: Move background to _screenDialogGroup
js/ui/screenShield.js | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 2e2e95a387..39bcd3536d 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -450,15 +450,6 @@ var ScreenShield = class {
this._lockScreenGroup.add_actor(this._lockScreenContents);
- this._backgroundGroup = new Clutter.Actor();
-
- this._lockScreenGroup.add_actor(this._backgroundGroup);
- this._backgroundGroup.lower_bottom();
- this._bgManagers = [];
-
- this._updateBackgrounds();
- Main.layoutManager.connect('monitors-changed', this._updateBackgrounds.bind(this));
-
this._arrowAnimationId = 0;
this._arrowWatchId = 0;
this._arrowActiveWatchId = 0;
@@ -492,6 +483,14 @@ var ScreenShield = class {
this.actor.add_actor(this._lockDialogGroup);
this.actor.add_actor(this._lockScreenGroup);
+ this._backgroundGroup = new Clutter.Actor();
+ this._lockDialogGroup.add_actor(this._backgroundGroup);
+ this._backgroundGroup.lower_bottom();
+ this._bgManagers = [];
+
+ this._updateBackgrounds();
+ Main.layoutManager.connect('monitors-changed', this._updateBackgrounds.bind(this));
+
this._presence = new GnomeSession.Presence((proxy, error) => {
if (error) {
logError(error, 'Error while reading gnome-session presence');
@@ -601,9 +600,15 @@ var ScreenShield = class {
}
_updateBackgrounds() {
+ let isGreeter = Main.sessionMode.isGreeter;
+ this._backgroundGroup.visible = !isGreeter;
+
for (let i = 0; i < this._bgManagers.length; i++)
this._bgManagers[i].destroy();
+ if (isGreeter)
+ return;
+
this._bgManagers = [];
this._backgroundGroup.destroy_all_children();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]