From: Dana Jansens Date: Mon, 2 Jun 2003 23:10:27 +0000 (+0000) Subject: watch out for 0x0 icons, and skip them X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=754391ea4d3db7564a39d561d9b50191a56ed751;p=chaz%2Fopenbox watch out for 0x0 icons, and skip them --- diff --git a/openbox/client.c b/openbox/client.c index 0f2519cf..0cfd6c2e 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1336,6 +1336,8 @@ void client_update_icons(Client *self) w = self->icons[j].width = data[i++]; h = self->icons[j].height = data[i++]; + if (w*h == 0) continue; + self->icons[j].data = g_new(pixel32, w * h); for (x = 0, y = 0, t = 0; t < w * h; ++t, ++x, ++i) { if (x >= w) {