]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
handle case where session saves a 0 width/height (for maximized windows!)
[chaz/openbox] / openbox / openbox.c
index 3ad198664b74021b6ae26d4b27f9c1309093b2e7..f723ffe2529ca0a2d4937da386d6025063f4c335 100644 (file)
@@ -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();
 
@@ -205,7 +207,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 +250,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;
 
This page took 0.023818 seconds and 4 git commands to generate.