summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2015-06-07 19:10:01 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2015-06-07 19:10:01 +0000
commit634d38d369d599db1f3d419d23e3179d1a5a7de3 (patch)
tree9632c4fe7a4a6937ac1b71cdfbe82d792e042115 /app/cwm
parent1c509b6527ac0f4f70cc64beb263fe4cb0b5d201 (diff)
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.
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/mousefunc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 48d1fc4eb..84a2fb495 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.88 2015/06/05 15:01:51 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.89 2015/06/07 19:10:00 okan Exp $
*/
#include <sys/types.h>
@@ -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)