diff options
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/actions/desktop.c | 2 | ||||
| -rw-r--r-- | openbox/actions/if.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 37268bba..d5535f6c 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -86,7 +86,7 @@ static gpointer setup_go_func(xmlNodePtr node) } else { o->type = ABSOLUTE; - o->abs.desktop = obt_parse_node_int(n) - 1; + o->abs.desktop = atoi(s) - 1; } g_free(s); } diff --git a/openbox/actions/if.c b/openbox/actions/if.c index 63a7fbcd..833bdd3a 100644 --- a/openbox/actions/if.c +++ b/openbox/actions/if.c @@ -82,7 +82,7 @@ static gpointer setup_func(xmlNodePtr node) m = obt_parse_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); - if (action) o->thenacts = g_slist_prepend(o->thenacts, action); + if (action) o->thenacts = g_slist_append(o->thenacts, action); m = obt_parse_find_node(m->next, "action"); } } @@ -92,7 +92,7 @@ static gpointer setup_func(xmlNodePtr node) m = obt_parse_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); - if (action) o->elseacts = g_slist_prepend(o->elseacts, action); + if (action) o->elseacts = g_slist_append(o->elseacts, action); m = obt_parse_find_node(m->next, "action"); } } |
