From: Dana Jansens Date: Sun, 23 Mar 2003 19:42:47 +0000 (+0000) Subject: add the plugin_setup_config function X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=80c7f14520694771c08b9564487ba65e7dadd75e;p=chaz%2Fopenbox add the plugin_setup_config function --- 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; diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 4fa6a8ed..6836ca16 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -7,6 +7,10 @@ #include "keyboard.h" #include +void plugin_setup_config() +{ +} + KeyBindingTree *firstnode; static KeyBindingTree *curpos; diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c index ea943f5a..7d60869f 100644 --- a/plugins/mouse/mouse.c +++ b/plugins/mouse/mouse.c @@ -9,6 +9,10 @@ #include "mouse.h" #include +void plugin_setup_config() +{ +} + static int drag_threshold = 3; /* GData of GSList*s of PointerBinding*s. */ diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index 2627eb84..2307db2f 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -8,6 +8,10 @@ gboolean history = TRUE; +void plugin_setup_config() +{ +} + static void place_random(Client *c) { int l, r, t, b; diff --git a/plugins/resistance.c b/plugins/resistance.c index 628802bd..24e291a0 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -5,6 +5,10 @@ #include "../kernel/screen.h" #include +void plugin_setup_config() +{ +} + static int resistance = 10; static gboolean window_resistance = TRUE; /* window-to-window */