]> Dogcows Code - chaz/openbox/commitdiff
adjust the themes for the frames before everything else happens, cuz they store point...
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:09:51 +0000 (21:09 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:09:51 +0000 (21:09 +0000)
openbox/openbox.c

index 220f0e2d147c6f12552619528c796cef7298ab26..a3adb1028237857d8e565271e14fcb521bef2eba 100644 (file)
@@ -218,6 +218,15 @@ int main(int argc, char **argv)
                     ob_exit_with_error("Unable to load a theme.");
             }
 
+            if (reconfigure) {
+                GList *it;
+
+                /* update all existing windows for the new theme */
+                for (it = client_list; it; it = g_list_next(it)) {
+                    ObClient *c = it->data;
+                    frame_adjust_theme(c->frame);
+                }
+            }
             event_startup(reconfigure);
             grab_startup(reconfigure);
             /* focus_backup is used for stacking, so this needs to come before
@@ -243,7 +252,7 @@ int main(int argc, char **argv)
                 /* redecorate all existing windows */
                 for (it = client_list; it; it = g_list_next(it)) {
                     ObClient *c = it->data;
-                    frame_adjust_theme(c->frame);
+                    frame_adjust_area(c->frame, TRUE, TRUE, FALSE);
                 }
             }
 
This page took 0.02802 seconds and 4 git commands to generate.