diff options
author | okan | 2015-07-12 14:31:47 +0000 |
---|---|---|
committer | okan | 2015-07-12 14:31:47 +0000 |
commit | b05f7a824f98fee35cc1fd31eae62460a743075c (patch) | |
tree | ee572128d6bb3c2f96ba7393cd25d10e2064b68d /mousefunc.c | |
parent | 1c42563c9b3c1a385b355c4ddc189364d05b4257 (diff) | |
download | cwm-b05f7a824f98fee35cc1fd31eae62460a743075c.tar.gz |
introduce 'groupsearch' for group menu search; matches on either group
number/shortcut and/or name.
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mousefunc.c b/mousefunc.c index 34c347f..b27ef5b 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.95 2015/07/01 14:36:42 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.96 2015/07/12 14:31:47 okan Exp $ */ #include <sys/types.h> @@ -182,13 +182,11 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg) TAILQ_FOREACH(gc, &sc->groupq, entry) { if (group_holds_only_sticky(gc)) continue; - menuq_add(&menuq, gc, - (group_holds_only_hidden(gc)) ? "%d: [%s]" : "%d: %s", - gc->num, gc->name); + menuq_add(&menuq, gc, "%d %s", gc->num, gc->name); } if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST, - NULL, NULL)) != NULL) { + NULL, search_print_group)) != NULL) { gc = (struct group_ctx *)mi->ctx; (group_holds_only_hidden(gc)) ? group_show(gc) : group_hide(gc); |