From 80c7f14520694771c08b9564487ba65e7dadd75e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 23 Mar 2003 19:42:47 +0000 Subject: add the plugin_setup_config function --- plugins/focus.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'plugins/focus.c') diff --git a/plugins/focus.c b/plugins/focus.c index 85d4f044..ff2e1e21 100644 --- a/plugins/focus.c +++ b/plugins/focus.c @@ -5,6 +5,22 @@ #include "../kernel/focus.h" #include "../kernel/stacking.h" #include "../kernel/openbox.h" +#include "../kernel/config.h" + +void plugin_setup_config() +{ + config_def_set(config_def_new("focus.followMouse", Config_Bool, + "Focus Follows Mouse", + "Focus windows when the mouse pointer " + "enters them.")); + config_def_set(config_def_new("focus.focusNew", Config_Bool, + "Focus New Windows", + "Focus windows when they first appear ")); + 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 options */ static gboolean follow_mouse = TRUE; -- cgit v1.2.3