From: Johan Malm Date: Thu, 25 Feb 2021 22:14:07 +0000 (+0000) Subject: main.c: declare theme within main() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ce73d23127dca4ef20db2c11845194a6f3a659bb;p=proto%2Flabwc.git main.c: declare theme within main() --- diff --git a/src/main.c b/src/main.c index 29b7f6cd..626c0d8e 100644 --- a/src/main.c +++ b/src/main.c @@ -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 ] [-c ] [-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;