adapting John Grahor's patch to dwm-3.5 8d0e58f8
Anselm R. Garbe · 2007-02-09 09:54 1 file(s) · +3 −2
tag.c +3 −2
76 76
	unsigned int i, j;
77 77
	regmatch_t tmp;
78 78
	Bool matched = trans != NULL;
79 -
	XClassHint ch;
79 +
	XClassHint ch = { 0 };
80 80
81 81
	if(matched) {
82 82
		for(i = 0; i < ntags; i++)
83 83
			c->tags[i] = trans->tags[i];
84 84
	}
85 -
	else if(XGetClassHint(dpy, c->win, &ch)) {
85 +
	else {
86 +
		XGetClassHint(dpy, c->win, &ch);
86 87
		snprintf(prop, sizeof prop, "%s:%s:%s",
87 88
				ch.res_class ? ch.res_class : "",
88 89
				ch.res_name ? ch.res_name : "", c->name);