diff options
author | Wynn Wolf Arbor | 2020-03-18 19:46:53 +0100 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 12:28:35 +0200 |
commit | c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (patch) | |
tree | 953c484d4a75cfcff94bdb3184b33136ef72ea4f /kbfunc.c | |
parent | 26a8c6ced076b6a49b130deb4fe35d6707bebbae (diff) | |
download | cwm-c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9.tar.gz |
Remove wm menu
Whilst arguably useful for certain people, or in rare cases, this
functionality is not needed in the general case.
This will also remove a memory leak where fallback was not properly
freed.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -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 |