Skip to content

Commit

Permalink
Fix for struts issue (hopefully...). There is still an insensitive zo…
Browse files Browse the repository at this point in the history
…ne when autohide is on
  • Loading branch information
glebihan committed Jan 21, 2012
1 parent 7b87e28 commit 21a28a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/ui/layout.js
Expand Up @@ -74,6 +74,8 @@ LayoutManager.prototype = {

global.screen.connect('monitors-changed',
Lang.bind(this, this._monitorsChanged));
global.window_manager.connect('switch-workspace',
Lang.bind(this, this._windowsRestacked));
this._monitorsChanged();
this._chrome.addActor(this._hotCorner.actor);
global.settings.connect("changed::panel-autohide", Lang.bind(this, this._onPanelAutoHideChanged));
Expand All @@ -94,6 +96,7 @@ LayoutManager.prototype = {
}
}
}
this._chrome.updateRegions();
},

// This is called by Main after everything else is constructed;
Expand Down Expand Up @@ -290,7 +293,7 @@ LayoutManager.prototype = {
global.destroy_pointer_barrier(rightPanelBarrier);

if (panelBox.height) {
if ((Main.desktop_layout == Main.LAYOUT_TRADITIONAL || Main.desktop_layout == Main.LAYOUT_CLASSIC) && panelBox==this.panelBox) {
if ((Main.desktop_layout == Main.LAYOUT_TRADITIONAL && panelBox==this.panelBox) || (Main.desktop_layout == Main.LAYOUT_CLASSIC && panelBox==this.panelBox2)) {
let monitor = this.bottomMonitor;
leftPanelBarrier =
global.create_pointer_barrier(monitor.x, monitor.y + monitor.height - panelBox.height,
Expand Down

0 comments on commit 21a28a7

Please sign in to comment.