From afa17072eb613d346852f8637f409aef8ba97cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Fri, 4 May 2018 16:04:55 +0200 Subject: [PATCH] sizeHandler: use correct coordinates --- tiling.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index baf1350..9ddff98 100644 --- a/tiling.js +++ b/tiling.js @@ -1118,7 +1118,9 @@ function sizeHandler(metaWindow) { return; let frame = metaWindow.get_frame_rect(); - move_to(space, metaWindow, {x: frame.x, y: frame.y}); + let monitor = space.monitor; + move_to(space, metaWindow, {x: frame.x - monitor.x, y: frame.y - monitor.y, + onComplete: () => space.emit('move-done')}); } // `MetaWindow::focus` handling