dnd: rip out the window immediatedly when ctrl is held down

(only works properly in wayland)
This commit is contained in:
Ole Jørgen Brønner
2020-03-08 14:48:00 +01:00
committed by Tor Hedin Brønner
parent 610f65487a
commit ddd6460892
+7
View File
@@ -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);