[PATCH] Add a ignoretags rule
This commit is contained in:
parent
47a68568fe
commit
abf71d99b9
@ -1081,6 +1081,9 @@ client_set_rules(Client *c)
|
|||||||
if(conf.rule[i].free)
|
if(conf.rule[i].free)
|
||||||
c->flags |= FreeFlag;
|
c->flags |= FreeFlag;
|
||||||
|
|
||||||
|
if(conf.rule[i].ignoretags)
|
||||||
|
c->tag = MAXTAG + 1;
|
||||||
|
|
||||||
if(conf.rule[i].max)
|
if(conf.rule[i].max)
|
||||||
{
|
{
|
||||||
client_maximize(c);
|
client_maximize(c);
|
||||||
@ -1093,6 +1096,7 @@ client_set_rules(Client *c)
|
|||||||
client_focus(NULL);
|
client_focus(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(! conf.rule[i].ignoretags)
|
||||||
tags[c->screen][c->tag].layout.func(c->screen);
|
tags[c->screen][c->tag].layout.func(c->screen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -630,6 +630,7 @@ conf_rule_section(void)
|
|||||||
conf.rule[i].tag = fetch_opt_first(rule[i], "-1", "tag").num;
|
conf.rule[i].tag = fetch_opt_first(rule[i], "-1", "tag").num;
|
||||||
conf.rule[i].free = fetch_opt_first(rule[i], "false", "free").bool;
|
conf.rule[i].free = fetch_opt_first(rule[i], "false", "free").bool;
|
||||||
conf.rule[i].max = fetch_opt_first(rule[i], "false", "max").bool;
|
conf.rule[i].max = fetch_opt_first(rule[i], "false", "max").bool;
|
||||||
|
conf.rule[i].ignoretags = fetch_opt_first(rule[i], "false", "ignoretags").bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(rule);
|
free(rule);
|
||||||
|
|||||||
@ -231,7 +231,7 @@ infobar_draw_taglist(int sc)
|
|||||||
is_occupied[i] = False;
|
is_occupied[i] = False;
|
||||||
|
|
||||||
for(c = clients; c; c = c->next)
|
for(c = clients; c; c = c->next)
|
||||||
if(c->screen == sc)
|
if(c->screen == sc && c->tag != MAXTAG + 1)
|
||||||
is_occupied[c->tag] = True;
|
is_occupied[c->tag] = True;
|
||||||
|
|
||||||
for(i = 1, x = 0; i < conf.ntag[sc] + 1; ++i)
|
for(i = 1, x = 0; i < conf.ntag[sc] + 1; ++i)
|
||||||
|
|||||||
@ -363,6 +363,7 @@ typedef struct
|
|||||||
int tag;
|
int tag;
|
||||||
Bool free;
|
Bool free;
|
||||||
Bool max;
|
Bool max;
|
||||||
|
Bool ignoretags;
|
||||||
} Rule;
|
} Rule;
|
||||||
|
|
||||||
/* Configuration structure */
|
/* Configuration structure */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user