Skip to content

Commit

Permalink
Small fix for centering vertically windows (for vertically oriented m…
Browse files Browse the repository at this point in the history
…onitor setups) (paperwm#926)
  • Loading branch information
jtaala authored Aug 7, 2024
2 parents 6cc99b4 + 8730cdb commit 15b512a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -4961,7 +4961,7 @@ export function centerWindow(metaWindow, horizontal = true, vertical = false) {
let targetY = vertical ? workArea.y + Math.round((workArea.height - frame.height) / 2) : frame.y;
targetY = Math.max(targetY, workArea.y);
if (space.indexOf(metaWindow) === -1) {
Scratch.easeScratch(metaWindow, targetX + monitor.x, targetY);
Scratch.easeScratch(metaWindow, targetX + monitor.x, targetY + monitor.y);
} else {
move_to(space, metaWindow, {
x: targetX,
Expand Down

0 comments on commit 15b512a

Please sign in to comment.