workspacesDisplay: add spacing around the workspacesView
On additional monitors the workspacesView takes up the entire monitor and in some cases windows in overview can end up hard against the edge of the monitor. https://bugzilla.gnome.org/show_bug.cgi?id=688133
This commit is contained in:
parent
f0f7165ab6
commit
f63fceb2ea
@ -863,8 +863,9 @@ const WorkspacesDisplay = new Lang.Class({
|
|||||||
let clipX = rtl ? x + controlsVisible : x;
|
let clipX = rtl ? x + controlsVisible : x;
|
||||||
let clipY = y + (fullHeight - clipHeight) / 2;
|
let clipY = y + (fullHeight - clipHeight) / 2;
|
||||||
|
|
||||||
|
let overviewSpacing = Main.overview._spacing;
|
||||||
let widthAdjust = this._zoomOut ? controlsNatural : controlsVisible;
|
let widthAdjust = this._zoomOut ? controlsNatural : controlsVisible;
|
||||||
widthAdjust += Main.overview._spacing;
|
widthAdjust += overviewSpacing;
|
||||||
width -= widthAdjust;
|
width -= widthAdjust;
|
||||||
if (rtl)
|
if (rtl)
|
||||||
x += widthAdjust;
|
x += widthAdjust;
|
||||||
@ -882,10 +883,10 @@ const WorkspacesDisplay = new Lang.Class({
|
|||||||
monitors[i].y,
|
monitors[i].y,
|
||||||
monitors[i].width,
|
monitors[i].width,
|
||||||
monitors[i].height);
|
monitors[i].height);
|
||||||
this._workspacesViews[m].setGeometry(monitors[i].x,
|
this._workspacesViews[m].setGeometry(monitors[i].x + overviewSpacing/2,
|
||||||
monitors[i].y,
|
monitors[i].y + overviewSpacing/2,
|
||||||
monitors[i].width,
|
monitors[i].width - overviewSpacing,
|
||||||
monitors[i].height);
|
monitors[i].height - overviewSpacing);
|
||||||
m++;
|
m++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user