- /* set up built in variables! and their default values! */
-
- config_def_set(config_def_new("engine", Config_String));
- config_def_set(config_def_new("theme", Config_String));
- config_def_set(config_def_new("font", Config_String));
- config_def_set(config_def_new("font.shadow.offset", Config_Integer));
- config_def_set(config_def_new("font.shadow.tint", Config_Integer));
- config_def_set(config_def_new("titlebar.layout", Config_String));
-
- /*g_datalist_foreach(&config_def, print_config, NULL);*/
+ if (!g_ascii_strcasecmp(name, "focusnew")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_focus_new = value->data.bool;
+ }
+ } else if (!g_ascii_strcasecmp(name, "followmouse")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_focus_follow = value->data.bool;
+ }
+ } else if (!g_ascii_strcasecmp(name, "focuslast")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_focus_last = value->data.bool;
+ }
+ } else if (!g_ascii_strcasecmp(name, "focuslastondesktop")) {
+ if (value->type != TOKEN_BOOL)
+ yyerror("invalid value");
+ else {
+ config_focus_last_on_desktop = value->data.bool;
+ }
+ } else
+ yyerror("invalid option");
+ parse_free_token(value);