main.c: declare theme within main()

This commit is contained in:
Johan Malm 2021-02-25 22:14:07 +00:00
parent de88b69d62
commit ce73d23127

View file

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