From 5a4e78cd2d20f50e5bbb16f364ac997518a8e746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 25 Jun 2018 21:25:45 +0200 Subject: [PATCH] Fix coordinates that broke multi monitor setup Used monitor relative coordinates as absolute two places. --- tiling.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tiling.js b/tiling.js index 4e8660a..c97b321 100644 --- a/tiling.js +++ b/tiling.js @@ -1015,8 +1015,9 @@ function updateSelection(space, noAnimate) { const frame = space.selectedWindow.get_frame_rect(); let protrusion = Math.round(prefs.window_gap/2); Tweener.addTween(space.selection, - {x: frame.x - protrusion, - y: Math.max(frame.y, panelBox.height + prefs.vertical_margin) - protrusion, + {x: frame.x - space.monitor.x - protrusion, + y: Math.max(frame.y - space.monitor.y, + panelBox.height + prefs.vertical_margin) - protrusion, width: frame.width + prefs.window_gap, height: frame.height + prefs.window_gap, time: noAnimate ? 0 : 0.25, @@ -1169,7 +1170,10 @@ function fixColumn(space, index, x, y, onComplete) { if (meta_window.get_compositor_private()) { // Anchor on the right edge for windows positioned to the left. move(meta_window, space, { x, y, visible, onComplete}); - meta_window.move_resize_frame(true, x, y, width, height); + meta_window.move_resize_frame(true, + x + space.monitor.x, + y + space.monitor.y, + width, height); } y += height + prefs.window_gap; }