- LOG("new windows should start in mode %s\n", $<string>3);
- config.default_border = strdup($<string>3);
+ DLOG("new windows should start in mode %s\n", $<string>3);
+ config.default_border = sstrdup($<string>3);
+ }
+ ;
+
+bool:
+ NUMBER
+ {
+ $<number>$ = ($<number>1 == 1);
+ }
+ | WORD
+ {
+ DLOG("checking word \"%s\"\n", $<string>1);
+ $<number>$ = (strcasecmp($<string>1, "yes") == 0 ||
+ strcasecmp($<string>1, "true") == 0 ||
+ strcasecmp($<string>1, "on") == 0 ||
+ strcasecmp($<string>1, "enable") == 0 ||
+ strcasecmp($<string>1, "active") == 0);
+ }
+ ;
+
+focus_follows_mouse:
+ TOKFOCUSFOLLOWSMOUSE WHITESPACE bool
+ {
+ DLOG("focus follows mouse = %d\n", $<number>3);
+ config.disable_focus_follows_mouse = !($<number>3);
+ }
+ ;
+
+workspace_bar:
+ TOKWORKSPACEBAR WHITESPACE bool
+ {
+ DLOG("workspace bar = %d\n", $<number>3);
+ config.disable_workspace_bar = !($<number>3);