GNOME Bugzilla – Bug 690858
ScreenShield: don't reset the lock screen animation if it's already happening
Last modified: 2012-12-30 00:42:13 UTC
When you click Suspend from the user menu, the following things happen: - we lock the screen internally by calling Main.screenShield.lock() and waiting for lock-screen-shown - logind emits a Lock signal, which causes us to lock again - gnome-settings-daemon notices PrepareForSleep, and calls org.gnome.ScreenSaver.Lock, just in case, so we lock once more This means that, if you're lucky, you can see the curtain fall down multiple times, as each .lock() call resets the animation.
Created attachment 232370 [details] [review] ScreenShield: don't reset the lock screen animation if it's already happening
Review of attachment 232370 [details] [review]: ::: js/ui/screenShield.js @@ +774,3 @@ _resetLockScreen: function(animateLockScreen, animateLockDialog) { + if (this._lockScreenState == MessageTray.State.SHOWING || + this._lockScreenState == MessageTray.State.SHOWN) Using MessageTray.State to indicate the state of the look screen feels kind of odd to me, but that's unrelated to this patch.
Attachment 232370 [details] pushed as a757ce4 - ScreenShield: don't reset the lock screen animation if it's already happening