]> Dogcows Code - chaz/openbox/commitdiff
add the plugin_setup_config function
authorDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 19:42:47 +0000 (19:42 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 19:42:47 +0000 (19:42 +0000)
plugins/focus.c
plugins/keyboard/keyboard.c
plugins/mouse/mouse.c
plugins/placement/placement.c
plugins/resistance.c

index 85d4f04439cad63c9b1f458e30faf682a96739a2..ff2e1e2137a238f4a51699c87896d273e93d6c85 100644 (file)
@@ -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;
index 4fa6a8ed4d51ab00d36ee8a550d4beca612d6e52..6836ca1618e36bc641b832ab4514ae63b7d20760 100644 (file)
@@ -7,6 +7,10 @@
 #include "keyboard.h"
 #include <glib.h>
 
+void plugin_setup_config()
+{
+}
+
 KeyBindingTree *firstnode;
 
 static KeyBindingTree *curpos;
index ea943f5a2820ac1a838efc4bf5a104ea4a82f660..7d60869f971e0ad24cf299330141db174b1429d4 100644 (file)
@@ -9,6 +9,10 @@
 #include "mouse.h"
 #include <glib.h>
 
+void plugin_setup_config()
+{
+}
+
 static int drag_threshold = 3;
 
 /* GData of GSList*s of PointerBinding*s. */
index 2627eb84358fd27fea6a808ddf22184cb970b168..2307db2ff4cf36d74c3e2d28789bf326d06cd92e 100644 (file)
@@ -8,6 +8,10 @@
 
 gboolean history = TRUE;
 
+void plugin_setup_config()
+{
+}
+
 static void place_random(Client *c)
 {
     int l, r, t, b;
index 628802bd895f7aa98739e9c4530f876eae17414f..24e291a049b8d70becaef1581670f2d5da0763d2 100644 (file)
@@ -5,6 +5,10 @@
 #include "../kernel/screen.h"
 #include <glib.h>
 
+void plugin_setup_config()
+{
+}
+
 static int resistance = 10;
 static gboolean window_resistance = TRUE; /* window-to-window */
 
This page took 0.025308 seconds and 4 git commands to generate.