AppMenuButton: Don't set the actor reactive if it's not really visible

Reactive means that the actor is reachable from keyboard
navigation. If the target isn't current that means we are not tweening
the actor to be visible so we shouldn't set it reactive either.

https://bugzilla.gnome.org/show_bug.cgi?id=671998
This commit is contained in:
Rui Matos 2012-03-13 19:14:18 +01:00
parent 21e8097b9c
commit 22e1abbaff

View File

@ -317,11 +317,12 @@ const AppMenuButton = new Lang.Class({
this._visible = true;
this.actor.show();
this.actor.reactive = true;
if (!this._targetIsCurrent)
return;
this.actor.reactive = true;
Tweener.removeTweens(this.actor);
Tweener.addTween(this.actor,
{ opacity: 255,