all repos — openbox @ 754391ea4d3db7564a39d561d9b50191a56ed751

openbox fork - make it a bit more like ryudo

watch out for 0x0 icons, and skip them
Dana Jansens danakj@orodu.net
commit

754391ea4d3db7564a39d561d9b50191a56ed751

parent

465e32b7c87aa92d4bf009c76b19429b306cfc2f

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1336,6 +1336,8 @@

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) {