X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fconfig.c;h=d03ba0312b36d8c8bdf855904e19c2d8a7ededa7;hb=cadab91e522c6426cc79df4f06e7c05232cb0a64;hp=a3c236fc2cbd96415c3122d72efb48ff69845eb3;hpb=1045079482453424f8320de99639390e3020eb72;p=chaz%2Fopenbox diff --git a/openbox/config.c b/openbox/config.c index a3c236fc..d03ba031 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -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);