summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-02 23:16:50 +0000
committerDana Jansens <danakj@orodu.net>2003-06-02 23:16:50 +0000
commit5a8c164412077d221face60ceb13e33d13b16432 (patch)
tree035fa15b9bcea980c3f580a8a355f8cfac005ae0
parent754391ea4d3db7564a39d561d9b50191a56ed751 (diff)
also dont increment the nicons if the w*h is 0
-rw-r--r--openbox/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 0cfd6c2e..cf1acc97 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1322,7 +1322,7 @@ void client_update_icons(Client *self)
w = data[i++];
h = data[i++];
i += w * h;
- if (i > num) break;
+ if (i > num || w*h == 0) break;
++self->nicons;
}