summaryrefslogtreecommitdiff
path: root/openbox/config.c
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-07-23 01:45:44 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-07-23 01:45:44 +0000
commit0e69ae2b96fb4dd7435ebe15645d1384d11a3ef7 (patch)
treefb68e08bfab17debce6c71a57df541197e296a82 /openbox/config.c
parent845833226b7d65019d41eb3afce6fad7ae3d30a2 (diff)
* Change xml parsing to pass the parent node, rather than the first
child. * Add x,y co-ordinates on showmenu action so we can place menus on keypress.
Diffstat (limited to 'openbox/config.c')
-rw-r--r--openbox/config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbox/config.c b/openbox/config.c
index 42d479af..5089a335 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -28,6 +28,8 @@ static void parse_focus(xmlDocPtr doc, xmlNodePtr node, void *d)
{
xmlNodePtr n;
+ node = node->xmlChildrenNode;
+
if ((n = parse_find_node("focusNew", node)))
config_focus_new = parse_bool(doc, n);
if ((n = parse_find_node("followMouse", node)))
@@ -44,6 +46,8 @@ static void parse_theme(xmlDocPtr doc, xmlNodePtr node, void *d)
{
xmlNodePtr n;
+ node = node->xmlChildrenNode;
+
if ((n = parse_find_node("theme", node))) {
g_free(config_theme);
config_theme = parse_string(doc, n);
@@ -54,6 +58,8 @@ static void parse_desktops(xmlDocPtr doc, xmlNodePtr node, void *d)
{
xmlNodePtr n;
+ node = node->xmlChildrenNode;
+
if ((n = parse_find_node("number", node)))
config_desktops_num = parse_int(doc, n);
if ((n = parse_find_node("names", node))) {
@@ -78,6 +84,8 @@ static void parse_moveresize(xmlDocPtr doc, xmlNodePtr node, void *d)
{
xmlNodePtr n;
+ node = node->xmlChildrenNode;
+
if ((n = parse_find_node("opaqueMove", node)))
config_opaque_move = parse_bool(doc, n);
if ((n = parse_find_node("opaqueResize", node)))
@@ -88,6 +96,8 @@ static void parse_dock(xmlDocPtr doc, xmlNodePtr node, void *d)
{
xmlNodePtr n;
+ node = node->xmlChildrenNode;
+
if ((n = parse_find_node("position", node))) {
if (parse_contains("TopLeft", doc, n))
config_dock_floating = FALSE,