Skip to content

Commit

Permalink
Right-click menu: prevent the dash from hiding while the menu is open.
Browse files Browse the repository at this point in the history
  • Loading branch information
franglais125 committed Oct 2, 2017
1 parent 3cd1671 commit 068738c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docking.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ const DockedDash = new Lang.Class({
});
this._box.connect('notify::hover', Lang.bind(this, this._hoverChanged));

// This is for the menu to access the settings with right-click
this.dash._containerObject.menu.connect('menu-closed', Lang.bind(this, this._hoverChanged))

// Create and apply height constraint to the dash. It's controlled by this.actor height
this.constrainSize = new Clutter.BindConstraint({
source: this.actor,
Expand Down Expand Up @@ -692,6 +695,10 @@ const DockedDash = new Lang.Class({
},

_hoverChanged: function() {
if (this.dash._containerObject.menu.isOpen) {
return;
}

if (!this._ignoreHover) {
// Skip if dock is not in autohide mode for instance because it is shown
// by intellihide.
Expand Down

0 comments on commit 068738c

Please sign in to comment.