Don't check geometry too early.
This commit is contained in:
parent
295f37721d
commit
679706b188
6
bar.c
6
bar.c
|
@ -1003,12 +1003,6 @@ main (int argc, char **argv)
|
||||||
bh = geom_v[1];
|
bh = geom_v[1];
|
||||||
bx = geom_v[2];
|
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 */
|
/* Do the heavy lifting */
|
||||||
init();
|
init();
|
||||||
/* Get the fd to Xserver */
|
/* Get the fd to Xserver */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user