workspacesViews: Update new padding rules for workspacesOnlyOnPrimary

Tim Lunn fixed this for the !workspacesOnlyOnPrimary case, but not the
other.
This commit is contained in:
Jasper St. Pierre 2012-11-27 17:40:40 -05:00
parent 858694f4cc
commit bb88265d78

View File

@ -128,8 +128,11 @@ const WorkspacesView = new Lang.Class({
continue;
let ws = new Workspace.Workspace(null, i);
ws.setGeometry(monitors[i].x, monitors[i].y,
monitors[i].width, monitors[i].height);
let overviewSpacing = Main.overview._spacing;
ws.setGeometry(monitors[i].x + overviewSpacing/2,
monitors[i].y + overviewSpacing/2,
monitors[i].width - overviewSpacing,
monitors[i].height - overviewSpacing);
global.overlay_group.add_actor(ws.actor);
this._extraWorkspaces.push(ws);
}