Prevent load_font calls before connecting to X

This commit is contained in:
LemonBoy 2015-10-28 22:41:15 +01:00
parent 3b5baa93b1
commit 2c0f57c584

View File

@ -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