aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rio/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/rio/error.c')
-rw-r--r--src/cmd/rio/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/rio/error.c b/src/cmd/rio/error.c
index a370b069..5215f32a 100644
--- a/src/cmd/rio/error.c
+++ b/src/cmd/rio/error.c
@@ -85,6 +85,8 @@ graberror(char *f, int err)
void
dotrace(char *s, Client *c, XEvent *e)
{
+ if(debug == 0)
+ return;
fprintf(stderr, "rio: %s: c=%p", s, c);
if(c)
fprintf(stderr, " x %d y %d dx %d dy %d w 0x%x parent 0x%x", c->x, c->y, c->dx, c->dy, (uint)c->window, (uint)c->parent);