Skip to content

Commit

Permalink
fix spacing and broken variable
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 10, 2016
1 parent 3082655 commit 5b9b6b8
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions index.js
Expand Up @@ -193,31 +193,31 @@ commandQueue.on('cmd', cmd => {

if (match) {
switch (match[1]) {
case 'destroy':
// workspace.currentWindow?
case 'destroy':
// workspace.currentWindow?
break
case 'move':
// todo: remove only from current workspace?
workspaces.forEach(workspace => Workspace.removeWindow(workspace, workspace.currentWindow))
Workspace.addWindow(workspaces[match[2] - 1], workspace.currentWindow)
Window.hide(workspace.currentWindow)
workspace.currentWindow = null
Workspace.show(workspace)
break
case 'tile':
switch (match[2]) {
case 'left':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width / 2, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, 0, 0)
break
case 'move':
// todo: remove only from current workspace?
workspaces.forEach(workspace => Workspace.removeWindow(workspace, workspace.currentWindow))
Workspace.addWindow(workspaces[match[2] - 1], currentWindow)
Window.hide(currentWindow)
workspace.currentWindow = null
Workspace.show(workspace)
case 'right':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width / 2, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, screen.pixel_width / 2, 0)
break
case 'tile':
switch (match[2]) {
case 'left':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width / 2, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, 0, 0)
break
case 'right':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width / 2, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, screen.pixel_width / 2, 0)
break
case 'full':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, 0, 0)
}
case 'full':
X.ResizeWindow(workspace.currentWindow.id, screen.pixel_width, screen.pixel_height)
X.MoveWindow(workspace.currentWindow.id, 0, 0)
}
}
}
// todo: make this just reload instead of killing the client
Expand Down

0 comments on commit 5b9b6b8

Please sign in to comment.