about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tag.c b/tag.c
index 2a06bc9..bc731c9 100644
--- a/tag.c
+++ b/tag.c
@@ -76,13 +76,14 @@ settags(Client *c, Client *trans) {
 	unsigned int i, j;
 	regmatch_t tmp;
 	Bool matched = trans != NULL;
-	XClassHint ch;
+	XClassHint ch = { 0 };
 
 	if(matched) {
 		for(i = 0; i < ntags; i++)
 			c->tags[i] = trans->tags[i];
 	}
-	else if(XGetClassHint(dpy, c->win, &ch)) {
+	else {
+		XGetClassHint(dpy, c->win, &ch);
 		snprintf(prop, sizeof prop, "%s:%s:%s",
 				ch.res_class ? ch.res_class : "",
 				ch.res_name ? ch.res_name : "", c->name);
s/dwm/commit/Makefile?id=1076f2b6b3d3751d5d5db6fcb9ac8c247e04e893'>1076f2b
789717d ^
650a1fb ^
dbf7e03 ^



1076f2b



0235a84 ^
5d3fd37 ^
17d39ee ^
e94774d ^

17d39ee ^
650a1fb ^
3d48f33 ^

1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^

d477fb6 ^
f806a17 ^
4d55eee ^


dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
ad4962c ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60