diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 09:09:18 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 09:09:18 +0100 |
| commit | e256afe31ef6a70eceb632ddfe717bfe6d8d9169 (patch) | |
| tree | c42d38a69d3787c83176169d73be22e859da0f52 /tag.c | |
| parent | made configurerequest more tidy (diff) | |
| download | dwm-e256afe31ef6a70eceb632ddfe717bfe6d8d9169.tar.gz dwm-e256afe31ef6a70eceb632ddfe717bfe6d8d9169.zip | |
made for/if/else constructs more consistent, some code polishing
Diffstat (limited to '')
| -rw-r--r-- | tag.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -78,10 +78,9 @@ settags(Client *c, Client *trans) { | |||
| 78 | Bool matched = trans != NULL; | 78 | Bool matched = trans != NULL; |
| 79 | XClassHint ch = { 0 }; | 79 | XClassHint ch = { 0 }; |
| 80 | 80 | ||
| 81 | if(matched) { | 81 | if(matched) |
| 82 | for(i = 0; i < ntags; i++) | 82 | for(i = 0; i < ntags; i++) |
| 83 | c->tags[i] = trans->tags[i]; | 83 | c->tags[i] = trans->tags[i]; |
| 84 | } | ||
| 85 | else { | 84 | else { |
| 86 | XGetClassHint(dpy, c->win, &ch); | 85 | XGetClassHint(dpy, c->win, &ch); |
| 87 | snprintf(prop, sizeof prop, "%s:%s:%s", | 86 | snprintf(prop, sizeof prop, "%s:%s:%s", |
