grab: make re-grabbing a window smoother

This commit is contained in:
Tor Hedin Brønner
2020-12-05 20:36:19 +01:00
parent abe9ac1ec0
commit ab33b9a268
+2 -1
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;