fixed * tag bug in rules reported by sander, revsersed order of matching, classinst need to have the highest prio

This commit is contained in:
Anselm R. Garbe 2006-04-12 09:09:46 +02:00
parent d7dc09cc8b
commit f5bdd9a03d
2 changed files with 8 additions and 8 deletions

View File

@ -547,9 +547,11 @@ send2area_client(Client *c, char *arg)
return;
if(!strncmp(arg, "prev", 5) && i) {
if(a->frame.size == 1)
return;
if(i > 1)
to = v->area.data[i - 1];
else if(a->frame.size > 1) {
else {
Area *p, *n;
unsigned int j;
p = to = alloc_area(v);
@ -560,18 +562,16 @@ send2area_client(Client *c, char *arg)
}
arrange_view(v, True);
}
else
return;
}
else if(!strncmp(arg, "next", 5) && i) {
if(a->frame.size == 1)
return;
if(i < v->area.size - 1)
to = v->area.data[i + 1];
else if(a->frame.size > 1) {
else {
to = alloc_area(v);
arrange_view(v, True);
}
else
return;
}
else if(!strncmp(arg, "toggle", 7)) {
if(i)

View File

@ -135,11 +135,11 @@ match_tags(Client *c)
{
if(!def.rules)
goto Fallback;
match(c, c->classinst);
match(c, c->name);
match(c, c->classinst);
Fallback:
if(!strlen(c->tags))
if(!strlen(c->tags) || !strncmp(c->tags, "*", 2))
cext_strlcpy(c->tags, "nil", sizeof(c->tags));
}