From 58d1cd875c31a6356bb2fa6b44ed355afedba106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Tue, 28 Jan 2020 20:06:11 +0100 Subject: [PATCH] grab: make re-grabbing a window smoother --- grab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grab.js b/grab.js index fc3e7f0..d9c83a8 100644 --- a/grab.js +++ b/grab.js @@ -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;