]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.c
move the resistance plugin into the kernel. dont resist when move/resizing with the...
[chaz/openbox] / openbox / config.c
index a3c236fc2cbd96415c3122d72efb48ff69845eb3..d03ba0312b36d8c8bdf855904e19c2d8a7ededa7 100644 (file)
@@ -38,6 +38,9 @@ gint config_mouse_dclicktime;
 
 gchar *config_menu_path;
 
+gint config_resist_win;
+gint config_resist_edge;
+
 gchar *expand_tilde(const gchar *f)
 {
     if (!f)
@@ -348,6 +351,18 @@ static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
     }
 }
    
+static void parse_resistance(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, 
+                             void *d)
+{
+    xmlNodePtr n;
+
+    node = node->xmlChildrenNode;
+    if ((n = parse_find_node("strength", node)))
+        config_resist_win = parse_int(doc, n);
+    if ((n = parse_find_node("screen_edge_strength", node)))
+        config_resist_edge = parse_int(doc, n);
+}
+
 void config_startup(ObParseInst *i)
 {
     config_focus_new = TRUE;
@@ -395,6 +410,11 @@ void config_startup(ObParseInst *i)
 
     parse_register(i, "mouse", parse_mouse, NULL);
 
+    config_resist_win = 10;
+    config_resist_edge = 10;
+
+    parse_register(i, "resistance", parse_resistance, NULL);
+
     config_menu_path = NULL;
 
     parse_register(i, "menu", parse_menu, NULL);
This page took 0.023373 seconds and 4 git commands to generate.