Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
Prevent load_font calls before connecting to X
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonBoy committed Oct 30, 2015
1 parent 3b5baa9 commit 2c0f57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lemonbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2c0f57c

Please sign in to comment.