i3 - improved tiling WM


Bugfix: Ignore spaces in front of default workspace name

Patch status: merged

Patch by Eika Enge

To apply this patch, use:
curl http://cr.i3wm.org/patch/184/raw.patch | git am

b/src/workspace.c

13
@@ -128,6 +128,8 @@ Con *create_workspace_on_output(Output *output, Con *content) {
14
             continue;
15
         DLOG("relevant command = %s\n", bind->command);
16
         char *target = bind->command + strlen("workspace ");
17
+        while((*target == ' ' || *target == '\t') && target != '\0')
18
+            target++;
19
         /* We check if this is the workspace
20
          * next/prev/next_on_output/prev_on_output/back_and_forth/number command.
21
          * Beware: The workspace names "next", "prev", "next_on_output",