app-menu: Fix non-fallback hot corners
Commit 2d1d812474 fixed handling of hot corners for the fallback
case, but broke the menu completely for the non-fallback case.
https://bugzilla.gnome.org/show_bug.cgi?id=695373
This commit is contained in:
@@ -140,12 +140,17 @@ const ApplicationsMenu = new Lang.Class({
|
||||
},
|
||||
|
||||
open: function(animate) {
|
||||
this._hotCorner.actor.hide();
|
||||
this._hotCorner.setBarrierSize(0);
|
||||
if (this._hotCorner.actor) // fallback corner
|
||||
this._hotCorner.actor.hide();
|
||||
this.parent(animate);
|
||||
},
|
||||
|
||||
close: function(animate) {
|
||||
this._hotCorner.actor.show();
|
||||
let size = Main.layoutManager.panelBox.height;
|
||||
this._hotCorner.setBarrierSize(size);
|
||||
if (this._hotCorner.actor) // fallback corner
|
||||
this._hotCorner.actor.show();
|
||||
this.parent(animate);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user