From 94a15d191f367834e0f14877e89155eade6cc2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Thu, 13 Sep 2018 20:46:34 +0200 Subject: [PATCH] resizeHandler: fix coordinates This makes resize work correctly on all monitors. --- tiling.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 591a3bb..2f876d2 100644 --- a/tiling.js +++ b/tiling.js @@ -1457,7 +1457,8 @@ function resizeHandler(metaWindow) { } else { // Restore window position when eg. exiting fullscreen !Navigator.navigating && selected - && move_to(space, metaWindow, {x: metaWindow.get_frame_rect().x}); + && move_to(space, metaWindow, { + x: metaWindow.get_frame_rect().x - space.monitor.x}); space.layout(true); ensureViewport(space.selectedWindow, space, true);