From 37d5340b0fc3948d8f676ff8774a48936e8be087 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 27 Apr 2021 11:06:53 +0200 Subject: Do not include ignored clients in the window menu Nowadays, most ignored clients will be bars or other "decorative" elements. We do not see the use of jumping to those using the window menu. They also tend to clutter up the menu, so let's ignore them there. --- kbfunc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kbfunc.c b/kbfunc.c index cde37e3..a28d256 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -526,6 +526,8 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs) TAILQ_INIT(&menuq); TAILQ_FOREACH(cc, &sc->clientq, entry) { + if (cc->flags & CLIENT_IGNORE) + continue; if ((cargs->flag & CWM_MENU_WINDOW_ALL) || (cc->flags & CLIENT_HIDDEN)) menuq_add(&menuq, cc, NULL); -- cgit v1.2.3-2-gb3c3