]> git.mdlowis.com Git - proto/labwc.git/commitdiff
main.c: declare theme within main()
authorJohan Malm <jgm323@gmail.com>
Thu, 25 Feb 2021 22:14:07 +0000 (22:14 +0000)
committerJohan Malm <jgm323@gmail.com>
Thu, 25 Feb 2021 22:14:07 +0000 (22:14 +0000)
src/main.c

index 29b7f6cd222850f52a890f0bfefe7573af3d11a9..626c0d8e8427363bf011cbe16f380cf7eef3cb40 100644 (file)
@@ -8,7 +8,6 @@
 #include "menu/menu.h"
 
 struct rcxml rc = { 0 };
-struct theme theme = { 0 };
 
 static const char labwc_usage[] =
        "Usage: labwc [-h] [-s <startup-command>] [-c <config-file>] [-v]\n";
@@ -76,6 +75,7 @@ main(int argc, char *argv[])
        server_init(&server);
        server_start(&server);
 
+       struct theme theme = { 0 };
        theme_init(&theme, server.renderer, rc.theme_name);
        server.theme = &theme;