diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-02 23:16:50 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-02 23:16:50 +0000 |
| commit | 5a8c164412077d221face60ceb13e33d13b16432 (patch) | |
| tree | 035fa15b9bcea980c3f580a8a355f8cfac005ae0 | |
| parent | 754391ea4d3db7564a39d561d9b50191a56ed751 (diff) | |
also dont increment the nicons if the w*h is 0
| -rw-r--r-- | openbox/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
