X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=0455e88c523406e929a1aba28a4745d89550b72a;hb=d1e355de2c6aae38cea3cdc0e0b902ea2b194e86;hp=2b4dddced71679ae56163f53bcb2b0c0fd55bce8;hpb=927f99e4125743bbecf41b1aa7dbce9587fb6156;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 2b4dddce..0455e88c 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -12,13 +12,13 @@ #include "moveresize.h" #include "frame.h" #include "extensions.h" -#include "parse.h" #include "grab.h" #include "plugin.h" #include "timer.h" #include "group.h" #include "config.h" #include "gettext.h" +#include "parser/parse.h" #include "render/render.h" #include "render/font.h" #include "render/theme.h" @@ -66,6 +66,8 @@ int main(int argc, char **argv) sigset_t sigset; char *path; char *theme; + xmlDocPtr doc; + xmlNodePtr node; ob_state = State_Starting; @@ -180,7 +182,8 @@ int main(int argc, char **argv) /* set up the kernel config shit */ config_startup(); /* parse/load user options */ - parse_config(); + if (parse_load_rc(&doc, &node)) + parse_tree(doc, node->xmlChildrenNode, NULL); /* we're done with parsing now, kill it */ parse_shutdown();