From 4f75b45ea8bc8328235c8a2478cb5701c085eea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Mon, 2 Jul 2018 19:44:58 +0200 Subject: [PATCH] Bugfix monitor relative coordinates --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 8b8be5c..d43b5f0 100644 --- a/tiling.js +++ b/tiling.js @@ -1614,8 +1614,8 @@ function centerWindowHorizontally(metaWindow) { const space = spaces.spaceOfWindow(metaWindow); const monitor = space.monitor; const targetX = Math.round(monitor.width/2 - frame.width/2); - const dx = (targetX + monitor.x) - (metaWindow.clone.targetX + space.targetX); utils.warpPointerRelative(dx, 0); + const dx = targetX - (metaWindow.clone.targetX + space.targetX); if (space.indexOf(metaWindow) === -1) { metaWindow.move_frame(true, targetX + monitor.x, frame.y); } else {