enforce workspace output assignents

when creating a new output, move to that output all extant workspaces
that are assigned to that output.

(unrelated) remove comment that was no longer applicable, fix spacing in
an assignment
This commit is contained in:
Zandr Martin 2016-05-28 18:18:46 -05:00
parent a0315dc849
commit d291a29f30
3 changed files with 22 additions and 15 deletions

View file

@ -2325,7 +2325,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) {
// Handle workspace next/prev
swayc_t *ws = NULL;
if (argc == 2) {
if (!(ws=workspace_by_number(argv[1]))) {
if (!(ws = workspace_by_number(argv[1]))) {
ws = workspace_create(argv[1]);
}
} else if (strcasecmp(argv[0], "next") == 0) {