Don't check geometry too early.

This commit is contained in:
John Vogel 2014-02-25 19:29:40 -05:00
parent 295f37721d
commit 679706b188

6
bar.c
View File

@ -1003,12 +1003,6 @@ main (int argc, char **argv)
bh = geom_v[1];
bx = geom_v[2];
/* Check the geometry */
if (bx >= scr->width_in_pixels || bx + bw > scr->width_in_pixels) {
fprintf(stderr, "The geometry specified doesn't fit the screen!\n");
return EXIT_FAILURE;
}
/* Do the heavy lifting */
init();
/* Get the fd to Xserver */