Skip to content

Commit

Permalink
FIX: don't activate space if already active in PointerWatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed Jan 14, 2024
1 parent 516667b commit fe897a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stackoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit fe897a9

Please sign in to comment.