idxoftag("x") fails if x is a tag name; it compares the pointers and
not the strs.-- Ali
diff --git a/dwm.c b/dwm.c
--- a/dwm.c
+++ b/dwm.c
@@ -863,7 +863,7 @@ idxoftag(const char *tag) {
idxoftag(const char *tag) {
unsigned int i;
- for(i = 0; (i < LENGTH(tags)) && (tags[i] != tag); i++);
+ for(i = 0; (i < LENGTH(tags)) && cmp(tags[i], tag); i++);
return (i < LENGTH(tags)) ? i : 0;
}
signature.asc
Description: Digital signature
