]> Dogcows Code - chaz/openbox/commitdiff
also dont increment the nicons if the w*h is 0
authorDana Jansens <danakj@orodu.net>
Mon, 2 Jun 2003 23:16:50 +0000 (23:16 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 2 Jun 2003 23:16:50 +0000 (23:16 +0000)
openbox/client.c

index 0cfd6c2e033e9f93158992e156c1d6f5dad00413..cf1acc97eeeb658662b21a5bf5e4137bb92b2b3a 100644 (file)
@@ -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;
        }
 
This page took 0.032357 seconds and 4 git commands to generate.