dwm-meillo
changeset 742:39b941868ce3
adapting John Grahor's patch to dwm-3.5
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Fri, 09 Feb 2007 09:54:08 +0100 |
parents | 7c5d5b1e49c9 |
children | cb8b18d787d0 |
files | tag.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/tag.c Thu Feb 08 14:09:52 2007 +0100 1.2 +++ b/tag.c Fri Feb 09 09:54:08 2007 +0100 1.3 @@ -76,13 +76,14 @@ 1.4 unsigned int i, j; 1.5 regmatch_t tmp; 1.6 Bool matched = trans != NULL; 1.7 - XClassHint ch; 1.8 + XClassHint ch = { 0 }; 1.9 1.10 if(matched) { 1.11 for(i = 0; i < ntags; i++) 1.12 c->tags[i] = trans->tags[i]; 1.13 } 1.14 - else if(XGetClassHint(dpy, c->win, &ch)) { 1.15 + else { 1.16 + XGetClassHint(dpy, c->win, &ch); 1.17 snprintf(prop, sizeof prop, "%s:%s:%s", 1.18 ch.res_class ? ch.res_class : "", 1.19 ch.res_name ? ch.res_name : "", c->name);