From 5a8c164412077d221face60ceb13e33d13b16432 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 2 Jun 2003 23:16:50 +0000 Subject: [PATCH] also dont increment the nicons if the w*h is 0 --- openbox/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2