Skip to content

Commit

Permalink
Merge pull request #246 from esauvisky/fix/moving-delay
Browse files Browse the repository at this point in the history
Fix actionMoveWindow getting null window
  • Loading branch information
mzur authored Jan 4, 2023
2 parents f38fc3c + e6c85ca commit 7037a9e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions [email protected]/workspacePopup/workspaceManagerOverride.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,18 @@ var WorkspaceManagerOverride = class {
}

if (newWs !== undefined) {
if (action == 'switch')
if (action == 'switch') {
this.wm.actionMoveWorkspace(newWs);
else
this._showWorkspaceSwitcherPopup(false);
} else {
this._showWorkspaceSwitcherPopup(false);
this.wm.actionMoveWindow(window, newWs);
}
}

this._showWorkspaceSwitcherPopup(false);
}


_showWorkspaceSwitcherPopup(toggle) {
if (Main.overview.visible || !this.settings.get_boolean('show-popup')) {
return;
Expand Down

0 comments on commit 7037a9e

Please sign in to comment.