From 2c0f57c5846e34b3576c58808a296266e9f8a30b Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 28 Oct 2015 22:41:15 +0100 Subject: [PATCH] Prevent load_font calls before connecting to X --- lemonbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lemonbar.c b/lemonbar.c index 6582160..11aabb3 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -1246,6 +1246,9 @@ main (int argc, char **argv) areas = 10; wm_name = NULL; + // Connect to the Xserver and initialize scr + xconn(); + while ((ch = getopt(argc, argv, "hg:bdf:a:pu:B:F:n:")) != -1) { switch (ch) { case 'h': @@ -1297,9 +1300,6 @@ main (int argc, char **argv) bx = geom_v[2]; by = geom_v[3]; - // Connect to the Xserver and initialize scr - xconn(); - // Do the heavy lifting init(wm_name); // Get the fd to Xserver