[gnome-shell] ScreenShield: remove curtain animation when hiding without animation
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ScreenShield: remove curtain animation when hiding without animation
- Date: Tue, 6 Aug 2013 14:10:18 +0000 (UTC)
commit 7652f4272c965cddbb42acb673907a829bacfe90
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Jun 3 23:45:31 2013 +0200
ScreenShield: remove curtain animation when hiding without animation
If we don't remove the animation, we might leave a pending call
to _lockScreenShown() which would confuse our state tracking into
thinking we're active when we're not.
https://bugzilla.gnome.org/show_bug.cgi?id=700901
js/ui/screenShield.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 990f18f..ffe8762 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -882,6 +882,8 @@ const ScreenShield = new Lang.Class({
this._lockScreenState = MessageTray.State.HIDING;
+ Tweener.removeTweens(this._lockScreenGroup);
+
if (animate) {
// Tween the lock screen out of screen
// if velocity is not specified (i.e. we come here from pressing ESC),
@@ -894,7 +896,6 @@ const ScreenShield = new Lang.Class({
velocity = Math.max(min_velocity, velocity);
let time = (delta / velocity) / 1000;
- Tweener.removeTweens(this._lockScreenGroup);
Tweener.addTween(this._lockScreenGroup,
{ y: -h,
time: time,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]