summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/wctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/rio/wctl.c')
-rw-r--r--sys/src/cmd/rio/wctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c
index 22f7b501c..bef98fda9 100644
--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -88,7 +88,7 @@ static char *params[] = {
int
goodrect(Rectangle r)
{
- if(!eqrect(canonrect(r), r))
+ if(badrect(r) || !eqrect(canonrect(r), r))
return 0;
/* reasonable sizes only please */
if(Dx(r) > BIG*Dx(screen->r))