From f6458f215f9dfe3410beeac2150d46ab5e17e350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 19 Oct 2012 18:52:34 +0200 Subject: [PATCH] userMenu: Hide menu immediately before suspending The same logic as for commit 1f30670c1d8d8 applies to the case where we lock the screen before suspending - we don't want the menu to jump to the opposite screen side to fade out, so remove the animation altogether. https://bugzilla.gnome.org/show_bug.cgi?id=686484 --- js/ui/userMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index 464d8e4ef..8ebfef3ad 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -849,6 +849,7 @@ const UserMenuButton = new Lang.Class({ this._upClient.suspend_sync(null); })); + this.menu.close(BoxPointer.PopupAnimation.NONE); Main.screenShield.lock(true); } else { this._upClient.suspend_sync(null);