mirror of
https://github.com/0intro/wmii
synced 2025-01-09 03:42:01 +03:00
fixed * tag bug in rules reported by sander, revsersed order of matching, classinst need to have the highest prio
This commit is contained in:
parent
d7dc09cc8b
commit
f5bdd9a03d
@ -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)
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user