summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}