i3 - improved tiling WM


Make all workspaces starting with "__" internal

Patch status: needinfo

Patch by Alexander Berntsen

Long description:

Workspaces won't work properly if they start with "__", so reserve that
namespace altogether.

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

b/src/commands.c

15
@@ -483,7 +483,7 @@ void cmd_move_con_to_workspace_back_and_forth(I3_CMD) {
16
  *
17
  */
18
 void cmd_move_con_to_workspace_name(I3_CMD, char *name) {
19
-    if (strncasecmp(name, "__i3_", strlen("__i3_")) == 0) {
20
+    if (strncasecmp(name, "__", strlen("__")) == 0) {
21
         LOG("You cannot switch to the i3 internal workspaces.\n");
22
         ysuccess(false);
23
         return;
24
@@ -998,7 +998,7 @@ void cmd_workspace_back_and_forth(I3_CMD) {
25
  *
26
  */
27
 void cmd_workspace_name(I3_CMD, char *name) {
28
-    if (strncasecmp(name, "__i3_", strlen("__i3_")) == 0) {
29
+    if (strncasecmp(name, "__", strlen("__")) == 0) {
30
         LOG("You cannot switch to the i3 internal workspaces.\n");
31
         ysuccess(false);
32
         return;