add tag_view_byinde()
This commit is contained in:
parent
1cc5a2a1f8
commit
6a05197297
13
tag.c
13
tag.c
|
@ -293,6 +293,19 @@ tag_view_only(Tag *target)
|
|||
tag_view(target, True);
|
||||
}
|
||||
|
||||
void
|
||||
tag_view_byindex(int screen, int dindex, Bool view)
|
||||
{
|
||||
Tag *tag;
|
||||
|
||||
if(dindex < 0)
|
||||
return;
|
||||
|
||||
for(tag = globalconf.screens[screen].tags; tag && dindex > 0;
|
||||
tag = tag->next, dindex--);
|
||||
tag_view(tag, view);
|
||||
}
|
||||
|
||||
void
|
||||
tag_view_only_byindex(int screen, int dindex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue