made for/if/else constructs more consistent, some code polishing

This commit is contained in:
Anselm R. Garbe
2007-02-14 09:09:18 +01:00
parent 64cfebc5e7
commit e256afe31e
5 changed files with 18 additions and 21 deletions

3
tag.c
View File

@ -78,10 +78,9 @@ settags(Client *c, Client *trans) {
Bool matched = trans != NULL;
XClassHint ch = { 0 };
if(matched) {
if(matched)
for(i = 0; i < ntags; i++)
c->tags[i] = trans->tags[i];
}
else {
XGetClassHint(dpy, c->win, &ch);
snprintf(prop, sizeof prop, "%s:%s:%s",