- /* set up options exported by the kernel */
- config_def_set(config_def_new("engine", Config_String,
- "Engine",
- "The name of the theming engine to be used "
- "to decorate windows."));
- config_def_set(config_def_new("theme", Config_String,
- "Theme",
- "The name of the theme to load with the "
- "chosen engine."));
- config_def_set(config_def_new("font", Config_String,
- "Titlebar Font",
- "The fontstring specifying the font to "
- "be used in window titlebars."));
- config_def_set(config_def_new("font.shadow", Config_Bool,
- "Titlebar Font Shadow",
- "Whether or not the text in the window "
- "titlebars gets a drop shadow."));
- config_def_set(config_def_new("font.shadow.offset", Config_Integer,
- "Titlebar Font Shadow Offset",
- "The offset of the drop shadow for text "
- "in the window titlebars."));
- config_def_set(config_def_new("titlebar.layout", Config_String,
- "Titlebar Layout",
- "The ordering of the elements in the "
- "window titlebars."));
-
- /*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);