resizeHandler: fix coordinates

This makes resize work correctly on all monitors.
This commit is contained in:
Tor Hedin Brønner
2018-09-14 17:10:33 +02:00
parent d287ba16d8
commit 94a15d191f
+2 -1
View File
@@ -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);