screenShield: only pop lock-screen mode at the end of lift
This avoids the style of the top panel changing as soon as the lift key is pressed weakening the curtain effect. https://bugzilla.gnome.org/show_bug.cgi?id=695023
This commit is contained in:
parent
a3f625fe39
commit
e6ce0057af
@ -864,6 +864,14 @@ const ScreenShield = new Lang.Class({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_hideLockScreenComplete: function() {
|
||||||
|
if (Main.sessionMode.currentMode == 'lock-screen')
|
||||||
|
Main.sessionMode.popMode('lock-screen');
|
||||||
|
|
||||||
|
this._lockScreenState = MessageTray.State.HIDDEN;
|
||||||
|
this._lockScreenGroup.hide();
|
||||||
|
},
|
||||||
|
|
||||||
_hideLockScreen: function(animate, velocity) {
|
_hideLockScreen: function(animate, velocity) {
|
||||||
if (this._lockScreenState == MessageTray.State.HIDDEN)
|
if (this._lockScreenState == MessageTray.State.HIDDEN)
|
||||||
return;
|
return;
|
||||||
@ -887,21 +895,13 @@ const ScreenShield = new Lang.Class({
|
|||||||
{ y: -h,
|
{ y: -h,
|
||||||
time: time,
|
time: time,
|
||||||
transition: 'easeInQuad',
|
transition: 'easeInQuad',
|
||||||
onComplete: function() {
|
onComplete: Lang.bind(this, this._hideLockScreenComplete),
|
||||||
this._lockScreenState = MessageTray.State.HIDDEN;
|
|
||||||
this._lockScreenGroup.hide();
|
|
||||||
},
|
|
||||||
onCompleteScope: this,
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this._lockScreenState = MessageTray.State.HIDDEN;
|
this._hideLockScreenComplete();
|
||||||
this._lockScreenGroup.hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
global.stage.show_cursor();
|
global.stage.show_cursor();
|
||||||
|
|
||||||
if (Main.sessionMode.currentMode == 'lock-screen')
|
|
||||||
Main.sessionMode.popMode('lock-screen');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_ensureUnlockDialog: function(onPrimary, allowCancel) {
|
_ensureUnlockDialog: function(onPrimary, allowCancel) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user