There is no use in listing ignored windows, which are generally used as
for "status bars", in the window search menu (M-slash). It clutters up
the menu with persistent windows that the user would very rarely want
to focus.
This patch excludes them from menu-window and menu-window-hidden.
They can be focused with the mouse instead if needed.
Index: cwmrc.5
===================================================================
RCS file: /cvs/xenocara/app/cwm/cwmrc.5,v
retrieving revision 1.76
diff -u -p -r1.76 cwmrc.5
--- cwmrc.5 16 Apr 2020 13:32:35 -0000 1.76
+++ cwmrc.5 12 Jun 2021 20:28:27 -0000
@@ -193,7 +193,7 @@ The default is 50.
.It Ic ignore Ar windowname
Ignore, and do not warp to, windows with the name
.Ar windowname
-when drawing borders and cycling through windows.
+when drawing borders, searching windows and cycling through windows.
.It Ic moveamount Ar pixels
Set a default size for the keyboard movement bindings,
in pixels.
Index: kbfunc.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/kbfunc.c,v
retrieving revision 1.170
diff -u -p -r1.170 kbfunc.c
--- kbfunc.c 20 Mar 2020 18:50:08 -0000 1.170
+++ kbfunc.c 12 Jun 2021 20:28:27 -0000
@@ -516,6 +516,8 @@ kbfunc_menu_client(void *ctx, struct car
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);