X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=3ffaded81ce4127ba7493a97ee54058b908fa66a;hb=055aa5cd7411c4563956e376523219afc6198ce1;hp=84b9fbebe8fc12ffd6a6aba1bbb67bcc671c1460;hpb=16f46c296d1fcd3f27fc62a18e71c55fb3fd3e88;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 84b9fbeb..3ffaded8 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -100,6 +100,8 @@ int main(int argc, char **argv) textdomain(PACKAGE_NAME); g_set_prgname(argv[0]); + + chdir(g_get_home_dir()); parse_paths_startup(); @@ -130,8 +132,6 @@ int main(int argc, char **argv) if (ob_rr_inst == NULL) ob_exit_with_error("Failed to initialize the render library."); - /* XXX fork self onto other screens */ - XSynchronize(ob_display, xsync); /* check for locale support */ @@ -205,7 +205,7 @@ int main(int argc, char **argv) if (parse_load_rc(&doc, &node)) parse_tree(i, doc, node->xmlChildrenNode); /* we're done with parsing now, kill it */ - xmlFreeDoc(doc); + parse_close(doc); parse_shutdown(i); } @@ -248,6 +248,7 @@ int main(int argc, char **argv) if (!reconfigure) { /* get all the existing windows */ client_manage_all(); + focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); } else { GList *it; @@ -286,6 +287,8 @@ int main(int argc, char **argv) } while (reconfigure); } + XSync(ob_display, FALSE); + RrThemeFree(ob_rr_theme); RrInstanceFree(ob_rr_inst);