introduce new tag_client_with_current_selected() function to tag a client with currently selected tags
This commit is contained in:
parent
98c869c8f3
commit
0f2db7653d
9
tag.c
9
tag.c
|
@ -49,6 +49,15 @@ isvisible(Client * c, int screen, Tag * tags, int ntags)
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
tag_client_with_current_selected(Client *c, awesome_config *awesomeconf)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
p_realloc(&c->tags, awesomeconf->ntags);
|
||||||
|
for(i = 0; i < awesomeconf->ntags; i++)
|
||||||
|
c->tags[i] = awesomeconf->tags[i].selected;
|
||||||
|
}
|
||||||
|
|
||||||
/** Tag selected window with tag
|
/** Tag selected window with tag
|
||||||
* \param arg Tag name
|
* \param arg Tag name
|
||||||
|
|
1
tag.h
1
tag.h
|
@ -28,6 +28,7 @@
|
||||||
#define IS_TILED(client, screen, tags, ntags) (client && !client->isfloating && isvisible(client, screen, tags, ntags))
|
#define IS_TILED(client, screen, tags, ntags) (client && !client->isfloating && isvisible(client, screen, tags, ntags))
|
||||||
|
|
||||||
Bool isvisible(Client *, int, Tag *, int);
|
Bool isvisible(Client *, int, Tag *, int);
|
||||||
|
void tag_client_with_current_selected(Client *, awesome_config *);
|
||||||
|
|
||||||
UICB_PROTO(uicb_tag);
|
UICB_PROTO(uicb_tag);
|
||||||
UICB_PROTO(uicb_togglefloating);
|
UICB_PROTO(uicb_togglefloating);
|
||||||
|
|
Loading…
Reference in New Issue