mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-12-04 04:11:38 +00:00
dnd: rip out the window immediatedly when ctrl is held down
(only works properly in wayland)
This commit is contained in:
committed by
Tor Hedin Brønner
parent
610f65487a
commit
ddd6460892
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user