From 87504ea720624995f5f127e1b500e09c69ddebc8 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 6eb445f97..eb6b1e3fc 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -854,6 +854,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);