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
This commit is contained in:
parent
c28540b4df
commit
87504ea720
@ -854,6 +854,7 @@ const UserMenuButton = new Lang.Class({
|
|||||||
this._upClient.suspend_sync(null);
|
this._upClient.suspend_sync(null);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
this.menu.close(BoxPointer.PopupAnimation.NONE);
|
||||||
Main.screenShield.lock(true);
|
Main.screenShield.lock(true);
|
||||||
} else {
|
} else {
|
||||||
this._upClient.suspend_sync(null);
|
this._upClient.suspend_sync(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user