From: Mikael Magnusson Date: Sun, 21 Mar 2004 12:20:52 +0000 (+0000) Subject: take numbers as args for the popup options too X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=39748e41800b03732b0745f6fcd76b61dd93769f;p=chaz%2Fopenbox take numbers as args for the popup options too --- diff --git a/openbox/config.c b/openbox/config.c index 3a2affc7..4b58fbd9 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -296,6 +296,7 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, if ((n = parse_find_node("drawContents", node))) config_resize_redraw = parse_bool(doc, n); if ((n = parse_find_node("popupShow", node))) { + config_resize_popup_show = parse_int(doc, n); if (parse_contains("Always", doc, n)) config_resize_popup_show = 2; else if (parse_contains("Never", doc, n)) @@ -304,6 +305,7 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_resize_popup_show = 1; } if ((n = parse_find_node("popupPosition", node))) { + config_resize_popup_pos = parse_int(doc, n); if (parse_contains("Top", doc, n)) config_resize_popup_pos = 1; else if (parse_contains("Center", doc, n))