Skip to content

Commit

Permalink
show appmenu inf hidden on overview hide
Browse files Browse the repository at this point in the history
fixes issue #32
  • Loading branch information
jonian committed Feb 19, 2018
1 parent e71000e commit f42b6eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions [email protected]/modules/appMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ var AppMenu = new Lang.Class({
'notify::focus-app', Lang.bind(this, this._showMenu)
);

this._ovHandlerID = Main.overview.connect(
'hiding', Lang.bind(this, this._showMenu)
);

this._wmHandlerIDs.push(global.window_manager.connect(
'destroy', Lang.bind(this, this._updateMenu)
));
Expand Down Expand Up @@ -75,6 +79,11 @@ var AppMenu = new Lang.Class({
delete this._wtHandlerID;
}

if (this._ovHandlerID) {
Main.overview.disconnect(this._ovHandlerID);
delete this._ovHandlerID;
}

this._wmHandlerIDs.forEach(function (handler) {
global.window_manager.disconnect(handler);
});
Expand Down

0 comments on commit f42b6eb

Please sign in to comment.