summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2015-06-07 19:10:00 +0000
committerokan <okan>2015-06-07 19:10:00 +0000
commitbd5f724931404c9dd95eda0c9c962a68e9e31ef2 (patch)
treeb07d0307292efae7b2c28a709ae9fc708caaaabf
parentcd5827491c7f5d6d74014c424f47623141a4dc9c (diff)
downloadcwm-bd5f724931404c9dd95eda0c9c962a68e9e31ef2.tar.gz
cwm-bd5f724931404c9dd95eda0c9c962a68e9e31ef2.tar.xz
cwm-bd5f724931404c9dd95eda0c9c962a68e9e31ef2.zip
even if the menuq is empty, at least show an empty menu instead of just
bailing making it look like the binding isn't working.
-rw-r--r--mousefunc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mousefunc.c b/mousefunc.c
index a1d7e06..e06196f 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -188,8 +188,6 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
 		    group_holds_only_hidden(gc) ? "%d: [%s]" : "%d: %s",
 		    gc->num, gc->name);
 	}
-	if (TAILQ_EMPTY(&menuq))
-		return;
 
 	if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
 	    NULL, NULL)) != NULL) {
@@ -222,8 +220,6 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg)
 			    cc->group ? cc->group->num : 0, wname);
 		}
 	}
-	if (TAILQ_EMPTY(&menuq))
-		return;
 
 	if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
 	    NULL, NULL)) != NULL) {
@@ -248,8 +244,6 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg)
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
 		menuq_add(&menuq, cmd, "%s", cmd->name);
-	if (TAILQ_EMPTY(&menuq))
-		return;
 
 	if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
 	    NULL, NULL)) != NULL)