From: Michael Stapelberg Date: Tue, 29 Nov 2011 21:20:42 +0000 (+0000) Subject: add a few more keywords to make i3 recognize configs as v4 X-Git-Tag: 4.1.1~23^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e56fcb9714732c7c3e6da2fb15ce612d4345793;p=i3%2Fi3 add a few more keywords to make i3 recognize configs as v4 --- diff --git a/src/cfgparse.y b/src/cfgparse.y index 79da317d..92a4d459 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -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; }