From d86d3aa419f331b7fb34f4592c23f3f93ebf223e Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 20 Jul 2023 14:39:34 +0000 Subject: Allow cwm(1) to cycle through windows of the same window class as the active window; default key binding to M-grave, respectively Alt-Tilde, like other window managers have as well. from Simon Dassow --- kbfunc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index f805360..d858b7b 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -430,7 +430,9 @@ kbfunc_client_cycle(void *ctx, struct cargs *cargs) /* Only cycle visible and non-ignored windows. */ if ((newcc->flags & (CLIENT_SKIP_CYCLE)) || ((flags & CWM_CYCLE_INGROUP) && - (newcc->gc != oldcc->gc))) + (newcc->gc != oldcc->gc)) || + ((flags & CWM_CYCLE_INCLASS) && + strcmp(newcc->res_class, oldcc->res_class) != 0)) again = 1; /* Is oldcc the only non-hidden window? */ -- cgit 1.4.1