JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
bring italian man page back to reality; from Andrea Bolognani <eof@kiyuko.org>
[spectrwm.git] / scrotwm.c
index c8fb2d2..4730a0f 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -1166,8 +1166,8 @@ custom_region(char *val)
        if (w < 1 || h < 1)
                errx(1, "region %ux%u+%u+%u too small\n", w, h, x, y);
 
-       if (x  < 0 || x > DisplayWidth(display, sidx) ||
-           y < 0 || y > DisplayHeight(display, sidx) ||
+       if (x > DisplayWidth(display, sidx) ||
+           y > DisplayHeight(display, sidx) ||
            w + x > DisplayWidth(display, sidx) ||
            h + y > DisplayHeight(display, sidx)) {
                fprintf(stderr, "ignoring region %ux%u+%u+%u "