Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rules: match titles only as prefixes
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
a6e4fc0
..
5e8179f
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-306,7
+306,7
@@
applyrules(Client *c) {
for(i = 0; i < LENGTH(rules); i++) {
r = &rules[i];
for(i = 0; i < LENGTH(rules); i++) {
r = &rules[i];
- if((!r->title || strstr(c->name, r->title))
+ if((!r->title || c->name == strstr(c->name, r->title))
&& (!r->class || strstr(class, r->class))
&& (!r->instance || strstr(instance, r->instance)))
{
&& (!r->class || strstr(class, r->class))
&& (!r->instance || strstr(instance, r->instance)))
{