summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2015-07-12 14:31:48 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2015-07-12 14:31:48 +0000
commit6277fea1ff79f467de318738affc94191c925a73 (patch)
tree9c35fd598f3be206d2f26aa4f32ce4e5be676036 /app/cwm/mousefunc.c
parente1c71b6a033e9d98703e3816a2f82c9ca58d0ef8 (diff)
introduce 'groupsearch' for group menu search; matches on either group
number/shortcut and/or name.
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 34c347f45..b27ef5ba3 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/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);