Skip to content

Commit

Permalink
#32 - available space checked whenever a client is added to an empty …
Browse files Browse the repository at this point in the history
…act/desk/scr
  • Loading branch information
Jazqa committed Sep 27, 2017
1 parent 62f04f6 commit a657795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contents/code/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ function addClient(client, follow, desk, scr) {
ws.desktops += 1;
desk = ws.desktops;
}
} else if (tiles[act][desk][scr].length === 0) {
tiles[act][desk][scr].layout = newLayout(scr);
}

if (follow) {
Expand Down

0 comments on commit a657795

Please sign in to comment.