X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fopenbox.c;h=3ffaded81ce4127ba7493a97ee54058b908fa66a;hb=637ba6cf5c4d1dbcb4b9f855d5b6aac357426c9f;hp=3ad198664b74021b6ae26d4b27f9c1309093b2e7;hpb=c4e4760c41f10aae6af19a4363cb247c71edee4b;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 3ad19866..3ffaded8 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -1,4 +1,4 @@ -/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- openbox.c for the Openbox window manager Copyright (c) 2003 Ben Jansens @@ -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);