Bugfix monitor relative coordinates

This commit is contained in:
Ole Jørgen Brønner
2018-07-02 19:44:58 +02:00
parent d80abfbe11
commit 4f75b45ea8
+1 -1
View File
@@ -1614,8 +1614,8 @@ function centerWindowHorizontally(metaWindow) {
const space = spaces.spaceOfWindow(metaWindow);
const monitor = space.monitor;
const targetX = Math.round(monitor.width/2 - frame.width/2);
const dx = (targetX + monitor.x) - (metaWindow.clone.targetX + space.targetX);
utils.warpPointerRelative(dx, 0);
const dx = targetX - (metaWindow.clone.targetX + space.targetX);
if (space.indexOf(metaWindow) === -1) {
metaWindow.move_frame(true, targetX + monitor.x, frame.y);
} else {