about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoranselm@anselm1 <unknown>2008-04-20 18:17:33 +0100
committeranselm@anselm1 <unknown>2008-04-20 18:17:33 +0100
commit146ff227fe0d231bcfc59268364461ab8850c5fe (patch)
tree6a86aaf0473c0782a360806166bd4dcb78c09bac
parentbb0a328978d0af43ecd86b61d1a351dc5d933702 (diff)
downloaddwm-146ff227fe0d231bcfc59268364461ab8850c5fe.tar.gz
applied Gottox' applyrules() fix
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 9dd501a..852f7ac 100644
--- a/dwm.c
+++ b/dwm.c
@@ -262,8 +262,8 @@ applyrules(Client *c) {
 	for(i = 0; i < LENGTH(rules); i++) {
 		r = &rules[i];
 		if((!r->title || strstr(c->name, r->title))
-		&& (!ch.res_class || !r->class || strstr(ch.res_class, r->class))
-		&& (!ch.res_name || !r->instance || strstr(ch.res_name, r->instance)))
+		&& (!r->class || (ch.res_class && strstr(ch.res_class, r->class)))
+		&& (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) {
 		{
 			c->isfloating = r->isfloating;
 			if(r->tag) {
f='/ahoang/Nim/commit/install.txt?h=devel&id=db4f617afcd095db087dcb52e3ea603cca111da7'>db4f617af ^
1f63d1c76 ^
db4f617af ^



1f63d1c76 ^
db4f617af ^
8c671d22d ^
1f63d1c76 ^
99bcc233c ^
4d4b3b1c0 ^
ae0e5604f ^


ceb30d7a0 ^

ae0e5604f ^




db4f617af ^




8c671d22d ^

49d810f34 ^

db4f617af ^




6ce462c58 ^

db4f617af ^








ff4a69b62 ^

db4f617af ^
300430fbb ^
e27e873b7 ^
31bb4311e ^
e27e873b7 ^

8c671d22d ^
e27e873b7 ^
49d810f34 ^








ceb30d7a0 ^

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88