Fix problem with app menu showing when leaving overview
Since the opacity of the application menu is controlled by it's _targetIsCurrent flag, we need to respect that when entering and leaving the overview. https://bugzilla.gnome.org/show_bug.cgi?id=645734
This commit is contained in:
parent
f117d9bfd3
commit
c5eb324cf0
@ -300,6 +300,10 @@ AppMenuButton.prototype = {
|
|||||||
|
|
||||||
this._visible = true;
|
this._visible = true;
|
||||||
this.actor.show();
|
this.actor.show();
|
||||||
|
|
||||||
|
if (!this._targetIsCurrent)
|
||||||
|
return;
|
||||||
|
|
||||||
Tweener.removeTweens(this.actor);
|
Tweener.removeTweens(this.actor);
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ opacity: 255,
|
{ opacity: 255,
|
||||||
@ -312,6 +316,11 @@ AppMenuButton.prototype = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._visible = false;
|
this._visible = false;
|
||||||
|
if (!this._targetIsCurrent) {
|
||||||
|
this.actor.hide();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Tweener.removeTweens(this.actor);
|
Tweener.removeTweens(this.actor);
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user