Commit 7fec6ed1 authored by Maciej Dębski's avatar Maciej Dębski Committed by Florian Müllner

Make apps-menu not assume that hotcorner exists.

Simple fix to set hotcorner action only if it exist.

Fixes #6
parent 724249dd
......@@ -253,17 +253,21 @@ const ApplicationsMenu = new Lang.Class({
},
open: function(animate) {
this._button.hotCorner.setBarrierSize(0);
if (this._button.hotCorner.actor) // fallback corner
this._button.hotCorner.actor.hide();
if(this._button.hotCorner) {
this._button.hotCorner.setBarrierSize(0);
if (this._button.hotCorner.actor) // fallback corner
this._button.hotCorner.actor.hide();
}
this.parent(animate);
},
close: function(animate) {
let size = Main.layoutManager.panelBox.height;
this._button.hotCorner.setBarrierSize(size);
if (this._button.hotCorner.actor) // fallback corner
this._button.hotCorner.actor.show();
if(this._button.hotCorner) {
this._button.hotCorner.setBarrierSize(size);
if (this._button.hotCorner.actor) // fallback corner
this._button.hotCorner.actor.show();
}
this.parent(animate);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment