Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7e905
)
more clang warnings that are usesul
author
marco
<marco@conformal.com>
Tue, 20 Sep 2011 04:18:24 +0000
(23:18 -0500)
committer
marco
<marco@conformal.com>
Tue, 20 Sep 2011 04:18:24 +0000
(23:18 -0500)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/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 "