aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2015-08-21 16:05:55 +0000
committerokan2015-08-21 16:05:55 +0000
commit8f9cade79c80625750ce285f4715c52c9e646f72 (patch)
treecd019a3ad03f71891c3aa20690fcd92e5e22750a /kbfunc.c
parentfc54489831cb2a1eb5b065831e25c6b9eb35fefe (diff)
downloadcwm-8f9cade79c80625750ce285f4715c52c9e646f72.tar.gz
Instead of special casing the 'term' and 'lock' commands, go back to
keeping them hidden; showing them has apparently caused confusion/angst.
Diffstat (limited to '')
-rw-r--r--kbfunc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 046c898..a259d00 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.113 2015/07/12 14:31:47 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.114 2015/08/21 16:05:55 okan Exp $
*/
#include <sys/types.h>
@@ -177,8 +177,12 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg)
struct menu_q menuq;
TAILQ_INIT(&menuq);
- TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
- menuq_add(&menuq, cmd, "%s", cmd->name);
+ TAILQ_FOREACH(cmd, &Conf.cmdq, entry) {
+ if ((strcmp(cmd->name, "lock") == 0) ||
+ (strcmp(cmd->name, "term") == 0))
+ continue;
+ menuq_add(&menuq, cmd, NULL);
+ }
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
search_match_text, search_print_cmd)) != NULL)