projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754391e
)
also dont increment the nicons if the w*h is 0
author
Dana Jansens
<danakj@orodu.net>
Mon, 2 Jun 2003 23:16:50 +0000
(23:16 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 2 Jun 2003 23:16:50 +0000
(23:16 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index 0cfd6c2e033e9f93158992e156c1d6f5dad00413..cf1acc97eeeb658662b21a5bf5e4137bb92b2b3a 100644
(file)
--- 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;
}