aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 8af8436..1ce473e 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -592,33 +592,6 @@ kbfunc_menu_group(void *ctx, struct cargs *cargs)
}
void
-kbfunc_menu_wm(void *ctx, struct cargs *cargs)
-{
- struct screen_ctx *sc = ctx;
- struct cmd_ctx *wm;
- struct menu *mi;
- struct menu_q menuq;
- int mflags = 0;
-
- if (cargs->xev == CWM_XEV_BTN)
- mflags |= CWM_MENU_LIST;
-
- TAILQ_INIT(&menuq);
- TAILQ_FOREACH(wm, &Conf.wmq, entry)
- menuq_add(&menuq, wm, NULL);
-
- if ((mi = menu_filter(sc, &menuq, "wm", NULL, mflags,
- search_match_wm, search_print_wm)) != NULL) {
- wm = (struct cmd_ctx *)mi->ctx;
- free(Conf.wm_argv);
- Conf.wm_argv = xstrdup(wm->path);
- cwm_status = CWM_EXEC_WM;
- }
-
- menuq_clear(&menuq);
-}
-
-void
kbfunc_menu_exec(void *ctx, struct cargs *cargs)
{
#define NPATHS 256