diff --git a/stackoverlay.js b/stackoverlay.js index a1e96927..d2fc51ab 100644 --- a/stackoverlay.js +++ b/stackoverlay.js @@ -86,6 +86,12 @@ export function enableMultimonitorDragDropSupport() { const monitor = Utils.monitorAtCurrentPoint(); const space = Tiling.spaces.monitors.get(monitor); + + // if space is already active, do nothing + if (Tiling.spaces.isActiveSpace(space)) { + return; + } + const selected = space?.selectedWindow; space?.activateWithFocus(selected, false, false); });