diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:57:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:57:04 +0000 |
| commit | 35ed95fe18e9b8d7a79f79f4fd7466a2b46435e3 (patch) | |
| tree | e6591143a46ae20426da8a035f1d12fa70d006d8 /openbox/config.c | |
| parent | 950b85b9880012ed45b81854b5b5865b1de08a87 (diff) | |
move the resistance plugin into the kernel. dont resist when move/resizing with the keyboard, only when doing it with the mouse.
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 20 |
1 files changed, 20 insertions, 0 deletions
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); |
