From: Dana Jansens Date: Mon, 8 Sep 2003 03:17:10 +0000 (+0000) Subject: make both focusDelay and hideTimeout in milliseconds X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=37e757095446aab8abf3254c73447b23c95146c8;p=chaz%2Fopenbox make both focusDelay and hideTimeout in milliseconds --- diff --git a/openbox/config.c b/openbox/config.c index 61b786fb..42a9433d 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -180,7 +180,7 @@ static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, if ((n = parse_find_node("focusLastOnDesktop", node))) config_focus_last_on_desktop = parse_bool(doc, n); if ((n = parse_find_node("focusDelay", node))) - config_focus_delay = parse_int(doc, n); + config_focus_delay = parse_int(doc, n) * 1000; } static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, @@ -299,7 +299,7 @@ static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d) if ((n = parse_find_node("autoHide", node))) config_dock_hide = parse_bool(doc, n); if ((n = parse_find_node("hideTimeout", node))) - config_dock_hide_timeout = parse_int(doc, n); + config_dock_hide_timeout = parse_int(doc, n) * 1000; } static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d) @@ -360,7 +360,7 @@ void config_startup(ObParseInst *i) config_dock_y = 0; config_dock_orient = OB_ORIENTATION_VERT; config_dock_hide = FALSE; - config_dock_hide_timeout = 3000; + config_dock_hide_timeout = 300; parse_register(i, "dock", parse_dock, NULL);