for my $line (@lines) {
# only v4 configfiles can use bindcode or workspace_layout
- return 0 if $line =~ /^bindcode/ || $line =~ /^workspace_layout/;
+ return 0 if $line =~ /^bindcode/ ||
+ $line =~ /^workspace_layout/ ||
+ $line =~ /^force_focus_wrapping/;
# have a look at bindings
next unless $line =~ /^bind/;
/* check for some v4-only statements */
if (strncasecmp(line, "bindcode", strlen("bindcode")) == 0 ||
+ strncasecmp(line, "force_focus_wrapping", strlen("force_focus_wrapping")) == 0 ||
strncasecmp(line, "# i3 config file (v4)", strlen("# i3 config file (v4)")) == 0 ||
strncasecmp(line, "workspace_layout", strlen("workspace_layout")) == 0) {
printf("deciding for version 4 due to this line: %.*s\n", (int)(walk-line), line);