Proof-of-concept: when pressure-barrier is on the monitor is "jailed" when super

is not held down.
This commit is contained in:
Ole Jørgen Brønner
2020-03-15 12:20:59 +01:00
parent 065526d409
commit 32faeb3f7c
+16 -1
View File
@@ -346,7 +346,22 @@ var StackOverlay = class StackOverlay {
y2: workArea.y + workArea.height - 1,
directions
});
this.pressureBarrier.addBarrier(this.barrier);
this.barrier.connect('hit', (_, event) => {
let [x, y, mod] = global.get_pointer();
for (let [k, v] of Object.entries(Clutter.ModifierType)) {
if (Clutter.ModifierType[k] & mod) {
// print(k);
}
}
if (mod & Clutter.ModifierType.MOD4_MASK) {
this.barrier.release(event);
// this.pressureBarrier.removeBarrier(this.barrier);
}
});
// this.pressureBarrier.addBarrier(this.barrier);
}
setTarget(space, index) {