X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Ffocus.c;h=ff2e1e2137a238f4a51699c87896d273e93d6c85;hb=f3153710eaf2662f0c10f6c2265b2aa5b3a31390;hp=85d4f04439cad63c9b1f458e30faf682a96739a2;hpb=c5e902a7b12408cfde03d80999ab76c01e823f00;p=chaz%2Fopenbox 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;