Skip to content

Commit

Permalink
only move window when a window is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 10, 2016
1 parent 5b9b6b8 commit 4b19557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -198,6 +198,7 @@ commandQueue.on('cmd', cmd => {
break
case 'move':
// todo: remove only from current workspace?
if (!workspace.currentWindow) break
workspaces.forEach(workspace => Workspace.removeWindow(workspace, workspace.currentWindow))
Workspace.addWindow(workspaces[match[2] - 1], workspace.currentWindow)
Window.hide(workspace.currentWindow)
Expand Down

0 comments on commit 4b19557

Please sign in to comment.