]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.c
allow actions and chains at the same level
[chaz/openbox] / openbox / config.c
index 2ed6921e6c021046a6b8d242637584f0dd43dc84..36ee408c8f026a0664391033d73b6e4645894fa2 100644 (file)
@@ -283,13 +283,13 @@ static void parse_key(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
 
     keylist = g_list_append(keylist, key);
 
-    /* a node either contains actions or key bindings */
     if ((n = parse_find_node("keybind", node->children))) {
         while (n) {
             parse_key(i, doc, n, keylist);
             n = parse_find_node("keybind", n->next);
         }
-    } else if ((n = parse_find_node("action", node->children))) {
+    }
+    if ((n = parse_find_node("action", node->children))) {
         while (n) {
             ObAction *action;
             
This page took 0.02366 seconds and 4 git commands to generate.