]> git.sur5r.net Git - i3/i3/commitdiff
add a few more keywords to make i3 recognize configs as v4
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 29 Nov 2011 21:20:42 +0000 (21:20 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 29 Nov 2011 21:20:42 +0000 (21:20 +0000)
src/cfgparse.y

index 79da317d2e19a3b9cc668aee4918d5af043d76e3..92a4d4594ec1763be887e9766a8fc3ebb2eff734 100644 (file)
@@ -103,7 +103,9 @@ static int detect_version(char *buf) {
                 strncasecmp(bind, "focus down", strlen("focus down")) == 0 ||
                 strncasecmp(bind, "border normal", strlen("border normal")) == 0 ||
                 strncasecmp(bind, "border 1pixel", strlen("border 1pixel")) == 0 ||
-                strncasecmp(bind, "border borderless", strlen("border borderless")) == 0) {
+                strncasecmp(bind, "border borderless", strlen("border borderless")) == 0 ||
+                strncasecmp(bind, "--no-startup-id", strlen("--no-startup-id")) == 0 ||
+                strncasecmp(bind, "bar", strlen("bar")) == 0) {
                 printf("deciding for version 4 due to this line: %.*s\n", (int)(walk-line), line);
                 return 4;
             }