]> git.sur5r.net Git - i3/i3/blobdiff - src/workspace.c
Make all workspaces starting with "__" internal
[i3/i3] / src / workspace.c
index 670322a9428dbbe0c5cea78ccc3af5468b503856..5f8ec0bceb4c9b149996ad6b566f326c5d51bf9c 100644 (file)
@@ -142,6 +142,10 @@ Con *create_workspace_on_output(Output *output, Con *content) {
             continue;
         if (*target == '"')
             target++;
+        if (strncasecmp(target, "__", strlen("__")) == 0) {
+            LOG("Cannot create workspace. '__' is a reserved prefix.\n");
+            continue;
+        }
         FREE(ws->name);
         ws->name = strdup(target);
         if (ws->name[strlen(ws->name)-1] == '"')