ClickOverlay: Don't change monitors while in workspace preview

This commit is contained in:
Tor Hedin Brønner
2019-11-12 13:45:54 +01:00
parent e9fa665fb2
commit e680ba8946

View File

@@ -87,6 +87,9 @@ class ClickOverlay {
this.signals.connect(
enterMonitor, 'motion-event',
(actor, event) => {
// Changing monitors while in workspace preview doesn't work
if (Tiling.inPreview)
return;
let [x, y, z] = global.get_pointer();
let [lX, lY] = this._lastPointer;
this._lastPointer = [x, y];