commit 11906f13b24efd03f1e07d59286421d4a39e1b31
parent fe0f4413e4aed87c5ac638f4c2b136e7f60c0c0f
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Thu, 13 Apr 2006 14:58:22 +0200
order matters in wmiirc
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cmd/wm/rule.c b/cmd/wm/rule.c
@@ -136,6 +136,7 @@ match(Client *c, const char *prop)
for(i = 0; i < rule.size; i++) {
Rule *r = rule.data[i];
if(r->is_valid && !regexec(&r->regex, prop, 1, &tmpregm, 0)) {
+ fprintf(stderr, "[%d] c->class=%s c->tags=%s r->tags=%s\n", i, c->classinst, c->tags, r->tags);
if(!strncmp(r->tags, "~", 2))
c->floating = True;
else if(!strlen(c->tags) || !strncmp(c->tags, "nil", 4)) {
@@ -157,8 +158,8 @@ apply_rules(Client *c)
{
if(!def.rules)
goto Fallback;
- match(c, c->name);
match(c, c->classinst);
+ match(c, c->name);
Fallback:
if(!strlen(c->tags) || (!view.size && !strncmp(c->tags, "*", 2)))
diff --git a/rc/wmiirc b/rc/wmiirc
@@ -36,10 +36,10 @@ xwrite /def/normcolors $WMII_NORMCOLORS
# TAGGING RULES
wmiir write /def/rules <<EOF
-/.*/ -> 1
-/.*/ -> !
/XMMS.*/ -> ~
/Gimp.*/ -> ~
+/.*/ -> !
+/.*/ -> 1
EOF
# MISC