X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=e3f52ce3c18ee0561c9dad79c84e2995a671dea2;hb=94c95663a86b1b40463fcd1e25a9ac4bc10954c1;hp=76b3b53f4cd8a3f984e19a60678a478aace3c7e7;hpb=6af116c87273451dd5b0017642c600861234671e;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 76b3b53f..e3f52ce3 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -261,7 +261,7 @@ gint main(gint argc, gchar **argv) /* load the theme specified in the rc file */ { RrTheme *theme; - if ((theme = RrThemeNew(ob_rr_inst, config_theme, + if ((theme = RrThemeNew(ob_rr_inst, config_theme, TRUE, config_font_activewindow, config_font_inactivewindow, config_font_menutitle, @@ -273,6 +273,9 @@ gint main(gint argc, gchar **argv) } if (ob_rr_theme == NULL) ob_exit_with_error(_("Unable to load a theme.")); + + PROP_SETS(RootWindow(ob_display, ob_screen), + ob_theme, ob_rr_theme->name); } if (reconfigure) { @@ -327,10 +330,14 @@ gint main(gint argc, gchar **argv) /* redecorate all existing windows */ for (it = client_list; it; it = g_list_next(it)) { ObClient *c = it->data; + /* the new config can change the window's decorations */ - client_setup_decor_and_functions(c); + client_setup_decor_and_functions(c, TRUE); /* redraw the frames */ frame_adjust_area(c->frame, TRUE, TRUE, FALSE); + /* the decor sizes may have changed, so the windows may + end up in new positions */ + client_reconfigure(c); } }