Skip to content
Browse files

Added hot corner

  • Loading branch information...
1 parent 243594d commit f6d0e9a0808e409098b7734efce35b19603240af @glebihan glebihan committed Dec 16, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/ui/layout.js
View
4 js/ui/layout.js
@@ -35,6 +35,7 @@ LayoutManager.prototype = {
this._chrome = new Chrome(this);
this._hotCorner = new HotCorner();
+ this._hotCorner.actor.set_position(0,0);
this.overviewCorner = new St.Button({name: 'overview-corner', reactive: true, track_hover: true });
this.addChrome(this.overviewCorner, { visibleInFullscreen: false });
this.overviewCorner.connect('button-release-event', Lang.bind(this, this._toggleOverview));
@@ -59,6 +60,7 @@ LayoutManager.prototype = {
global.screen.connect('monitors-changed',
Lang.bind(this, this._monitorsChanged));
this._monitorsChanged();
+ this._chrome.addActor(this._hotCorner.actor);
},
// This is called by Main after everything else is constructed;
@@ -149,6 +151,8 @@ LayoutManager.prototype = {
if (!haveTopLeftCorner)
continue;
+ _hotCorner = new HotCorner();
+
this._hotCorners.push(_hotCorner);
_hotCorner.actor.set_position(cornerX, cornerY);
this._chrome.addActor(_hotCorner.actor);

0 comments on commit f6d0e9a

Please sign in to comment.
Something went wrong with that request. Please try again.