windowPreview: Allow titles to overlap other previews
We are about to add additional chrome, but still want to use as much space as possible for the previews. Allowing titles to overlap other previews should help keeping the additional whitespace requirement low. https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/81 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1605>
This commit is contained in:
@ -469,10 +469,11 @@ var WorkspaceLayout = GObject.registerClass({
|
||||
colSpacing += Math.max(leftOversize, rightOversize);
|
||||
|
||||
if (containerBox) {
|
||||
containerBox.x1 += leftOversize;
|
||||
const [topOverlap, bottomOverlap] = window.overlapHeights();
|
||||
containerBox.x1 += leftOversize + topOverlap;
|
||||
containerBox.x2 -= rightOversize;
|
||||
containerBox.y1 += topOversize;
|
||||
containerBox.y2 -= bottomOversize;
|
||||
containerBox.y2 -= bottomOversize + bottomOverlap;
|
||||
}
|
||||
|
||||
return [rowSpacing, colSpacing, containerBox];
|
||||
|
Reference in New Issue
Block a user