Dash: don't show a tooltip over an application with a popup menu
If the popup menu associated with the application icon is open, make sure that the tooltip is hidden. https://bugzilla.gnome.org/show_bug.cgi?id=705611
This commit is contained in:

committed by
Giovanni Campagna

parent
8b93c97a09
commit
1b206fe94c
@ -878,6 +878,7 @@ const AppIcon = new Lang.Class({
|
||||
this.actor.set_hover(true);
|
||||
this._menu.popup();
|
||||
this._menuManager.ignoreRelease();
|
||||
this.emit('sync-tooltip');
|
||||
|
||||
return false;
|
||||
},
|
||||
@ -924,7 +925,11 @@ const AppIcon = new Lang.Class({
|
||||
// we show as the item is being dragged.
|
||||
getDragActorSource: function() {
|
||||
return this.icon.icon;
|
||||
}
|
||||
},
|
||||
|
||||
shouldShowTooltip: function() {
|
||||
return this.actor.hover && (!this._menu || !this._menu.isOpen);
|
||||
},
|
||||
});
|
||||
Signals.addSignalMethods(AppIcon.prototype);
|
||||
|
||||
|
Reference in New Issue
Block a user