From: Dana Jansens Date: Mon, 2 Jun 2003 23:16:50 +0000 (+0000) Subject: also dont increment the nicons if the w*h is 0 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5a8c164412077d221face60ceb13e33d13b16432;p=chaz%2Fopenbox also dont increment the nicons if the w*h is 0 --- 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; }