grab: make re-grabbing a window smoother

This commit is contained in:
Tor Hedin Brønner
2020-01-28 20:06:11 +01:00
parent 2f04b872db
commit 58d1cd875c

View File

@@ -191,7 +191,8 @@ var MoveGrab = class MoveGrab {
let space = this.initialSpace;
let frame = metaWindow.get_frame_rect();
this.initialY = clone.y;
this.initialY = clone.targetY;
Tweener.removeTweens(clone);
let [gx, gy, $] = global.get_pointer();
let px = (gx - actor.x) / actor.width;