ScreenShield: use different settings for the lock screen background
The design calls for the ability to set a different background in the lock screen, to differentiate it from the normal desktop. https://bugzilla.gnome.org/show_bug.cgi?id=688210
This commit is contained in:
parent
b0e22a795e
commit
f6aa0ee532
@ -467,8 +467,10 @@ const ScreenShield = new Lang.Class({
|
|||||||
name: 'lockScreenContents' });
|
name: 'lockScreenContents' });
|
||||||
this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true }));
|
this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true }));
|
||||||
|
|
||||||
|
this._settings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
|
||||||
|
|
||||||
let backgroundActor = new Meta.BackgroundActor({ screen: global.screen,
|
let backgroundActor = new Meta.BackgroundActor({ screen: global.screen,
|
||||||
settings: Main.background });
|
settings: this._settings });
|
||||||
backgroundActor.add_glsl_snippet(Meta.SnippetHook.TEXTURE_LOOKUP,
|
backgroundActor.add_glsl_snippet(Meta.SnippetHook.TEXTURE_LOOKUP,
|
||||||
GLSL_BLUR_EFFECT_DECLARATIONS,
|
GLSL_BLUR_EFFECT_DECLARATIONS,
|
||||||
GLSL_BLUR_EFFECT_CODE,
|
GLSL_BLUR_EFFECT_CODE,
|
||||||
@ -532,8 +534,6 @@ const ScreenShield = new Lang.Class({
|
|||||||
this._loginSession.connectSignal('Lock', Lang.bind(this, function() { this.lock(false); }));
|
this._loginSession.connectSignal('Lock', Lang.bind(this, function() { this.lock(false); }));
|
||||||
this._loginSession.connectSignal('Unlock', Lang.bind(this, function() { this.deactivate(false); }));
|
this._loginSession.connectSignal('Unlock', Lang.bind(this, function() { this.deactivate(false); }));
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
|
|
||||||
|
|
||||||
this._isModal = false;
|
this._isModal = false;
|
||||||
this._hasLockScreen = false;
|
this._hasLockScreen = false;
|
||||||
this._isGreeter = false;
|
this._isGreeter = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user