Use monitor relative coordinates in ensureViewport

The whole pipeline assumes coordinates being relative, correcting them back to
absolute coordinates in move.
This commit is contained in:
Tor Hedin Brønner
2018-04-22 15:01:57 +02:00
parent 892946e053
commit fff958568d
+4
View File
@@ -705,6 +705,10 @@ function ensureViewport(meta_window, space, force) {
frame.width,
primary.height - panelBox.height - margin_tb*2);
// Use monitor relative coordinates.
frame.x -= primary.x;
frame.y -= primary.y;
if (meta_window.destinationX !== undefined)
// Use the destination of the window if available
frame.x = meta_window.destinationX;