-/* config options */
-static gboolean follow_mouse = TRUE;
-static gboolean warp_on_desk_switch = TRUE;
-static gboolean focus_new = FALSE;
+void plugin_setup_config()
+{
+ ConfigValue val;
+
+ config_def_set(config_def_new("focus.followMouse", Config_Bool,
+ "Focus Follows Mouse",
+ "Focus windows when the mouse pointer "
+ "enters them."));
+ val.bool = TRUE;
+ config_set("focus.followMouse", Config_Bool, val);
+ config_def_set(config_def_new("focus.focusNew", Config_Bool,
+ "Focus New Windows",
+ "Focus windows when they first appear."));
+ val.bool = TRUE;
+ config_set("focus.focusNew", Config_Bool, val);
+/*
+ config_def_set(config_def_new("focus.warpOnDeskSwitch", Config_Bool,
+ "Warp Pointer On Desktop Switch",
+ "Warps the pointer to the focused window "
+ "when switching desktops."));
+ config_set("focus.warpOnDeskSwitch", Config_Bool, FALSE);
+*/
+}