aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Müller2021-04-27 11:06:53 +0200
committerWolfgang Müller2021-04-27 12:28:35 +0200
commit37d5340b0fc3948d8f676ff8774a48936e8be087 (patch)
tree6c52423e4a341cf104648529514b1c08eaec75d3
parent47703bbeafea2d689a33fce27e46b0e05c6bcd4e (diff)
downloadcwm-37d5340b0fc3948d8f676ff8774a48936e8be087.tar.gz
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.
-rw-r--r--kbfunc.c2
1 files changed, 2 insertions, 0 deletions
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);