i3 - improved tiling WM


Disallow using reserved wspace namespace in config

Patch status: needinfo

Patch by Alexander Berntsen

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

b/src/workspace.c

13
@@ -142,6 +142,10 @@ Con *create_workspace_on_output(Output *output, Con *content) {
14
             continue;
15
         if (*target == '"')
16
             target++;
17
+        if (strncasecmp(target, "__", strlen("__")) == 0) {
18
+            LOG("You cannot switch to the i3 internal workspaces.\n");
19
+            continue;
20
+        }
21
         FREE(ws->name);
22
         ws->name = strdup(target);
23
         if (ws->name[strlen(ws->name)-1] == '"')