summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c2
1 files changed, 2 insertions, 0 deletions
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) {