diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-02 23:10:27 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-02 23:10:27 +0000 |
| commit | 754391ea4d3db7564a39d561d9b50191a56ed751 (patch) | |
| tree | 79aa3fee1f009138a4461ec5e6d5a5fc2fef6fcf /openbox | |
| parent | 465e32b7c87aa92d4bf009c76b19429b306cfc2f (diff) | |
watch out for 0x0 icons, and skip them
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 2 |
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) { |
