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:
Florian Müllner
2013-03-07 17:50:22 +01:00
parent 3b6446f33a
commit 8305ef3b98
+7 -2
View File
@@ -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);
},