From ddd646089244362974de2d697033077ac7ea95f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Sun, 16 Feb 2020 17:50:37 +0100 Subject: [PATCH] dnd: rip out the window immediatedly when ctrl is held down (only works properly in wayland) --- grab.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/grab.js b/grab.js index 79f6849..ff7fa3f 100644 --- a/grab.js +++ b/grab.js @@ -317,6 +317,13 @@ var MoveGrab = class MoveGrab { this.beginDnD(); return; } + + if (event.get_state() & Clutter.ModifierType.CONTROL_MASK) { + // NB: only works in wayland + this.beginDnD(); + return; + } + let space = this.initialSpace; let clone = metaWindow.clone; let [x, y] = space.globalToViewport(gx, gy);