aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rio
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-10 19:03:57 +0000
committerrsc <devnull@localhost>2005-08-10 19:03:57 +0000
commit75e12c22c3eafb2f6dbe7c52bd5a672de026afcc (patch)
treed72cc6fd8d68c7a85e5d1466a2c70173355937ec /src/cmd/rio
parenta919ad8340ba788c54d34b437c347ee8b0a5e922 (diff)
downloadplan9port-75e12c22c3eafb2f6dbe7c52bd5a672de026afcc.tar.gz
plan9port-75e12c22c3eafb2f6dbe7c52bd5a672de026afcc.tar.bz2
plan9port-75e12c22c3eafb2f6dbe7c52bd5a672de026afcc.zip
Be quiet.
Diffstat (limited to 'src/cmd/rio')
-rw-r--r--src/cmd/rio/error.c2
-rw-r--r--src/cmd/rio/event.c2
2 files changed, 4 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);
diff --git a/src/cmd/rio/event.c b/src/cmd/rio/event.c
index 893693bc..45642774 100644
--- a/src/cmd/rio/event.c
+++ b/src/cmd/rio/event.c
@@ -314,6 +314,8 @@ clientmesg(XClientMessageEvent *e)
perror("rio: exec failed");
exit(1);
}
+ if(e->message_type == wm_protocols)
+ return;
if(e->message_type == wm_change_state){
c = getclient(e->window, 0);
if(e->format == 32 && e->data.l[0] == IconicState && c != 0){