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