workspace: Align window previews with the pixel grid
Now that full-sized window previews are allowed again it makes sense to align the window previews with the pixel grid to prevent unscaled windows from looking blurry in the overview.
This commit is contained in:
parent
accad67e1f
commit
a02399eea4
@ -948,6 +948,10 @@ var LayoutStrategy = new Lang.Class({
|
||||
let cloneX = x + (cellWidth - cloneWidth) / 2;
|
||||
let cloneY = row.y + row.height * row.additionalScale - cellHeight + compensation;
|
||||
|
||||
// Align with the pixel grid to prevent blurry windows at scale = 1
|
||||
cloneX = Math.floor(cloneX);
|
||||
cloneY = Math.floor(cloneY);
|
||||
|
||||
slots.push([cloneX, cloneY, s, window]);
|
||||
x += cellWidth + this._columnSpacing;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user