diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2016-12-01 18:17:53 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2016-12-01 18:17:53 +0000 |
commit | 22c63ca5da5122922b33af10693e4678cb845f96 (patch) | |
tree | caf41f0d99321fa191ba67ccd1200895f9d64a47 /app/cwm/kbfunc.c | |
parent | 9f7f1c07db45006dbf5d71e7b0a4ae4acaf8fd1f (diff) |
Change 'menu-window' to display all windows; then add 'menu-window-hidden' for
the previous behaviour of 'menu-window'. 'menu-window' becomes the default
binding; use 'bind-mouse "1" menu-window-hidden' to restore old behaviour for
those who prefer.
OK sthen@ (long long time ago on a different version)
Diffstat (limited to 'app/cwm/kbfunc.c')
-rw-r--r-- | app/cwm/kbfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index 6c4aa9ac4..2a9cc4b22 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.137 2016/11/15 18:43:09 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.138 2016/12/01 18:17:52 okan Exp $ */ #include <sys/types.h> @@ -298,12 +298,13 @@ kbfunc_menu_client(void *ctx, union arg *arg, enum xev xev) struct menu *mi; struct menu_q menuq; int m = (xev == CWM_XEV_BTN); + int all = (arg->i & CWM_MENU_WINDOW_ALL); old_cc = client_current(); TAILQ_INIT(&menuq); TAILQ_FOREACH(cc, &sc->clientq, entry) { - if (m) { + if (!all) { if (cc->flags & CLIENT_HIDDEN) menuq_add(&menuq, cc, NULL); } else |