mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
add client label
This commit is contained in:
parent
9180bb1a06
commit
8888c44888
5
search.c
5
search.c
@ -143,8 +143,9 @@ search_print_client(struct menu *mi, int list)
|
|||||||
if (list)
|
if (list)
|
||||||
cc->matchname = cc->name;
|
cc->matchname = cc->name;
|
||||||
|
|
||||||
(void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s",
|
(void)snprintf(mi->print, sizeof(mi->print), "(%d) %c[%s] %s",
|
||||||
cc->group ? cc->group->num : 0, flag, cc->matchname);
|
cc->group ? cc->group->num : 0, flag,
|
||||||
|
cc->label ? cc->label : "", cc->matchname);
|
||||||
|
|
||||||
if (!list && cc->matchname != cc->name &&
|
if (!list && cc->matchname != cc->name &&
|
||||||
strlen(mi->print) < sizeof(mi->print) - 1) {
|
strlen(mi->print) < sizeof(mi->print) - 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user