diff options
author | okan | 2019-02-25 16:40:49 +0000 |
---|---|---|
committer | okan | 2019-02-25 16:40:49 +0000 |
commit | 8f7c934cef0f223e5fc0d06b2f0cba386b5b8fd8 (patch) | |
tree | 9b2063e8cccf02d9d7066bc7d2109a74f2805f3e /kbfunc.c | |
parent | cd6bd49abd762f448b4b352b69e2cc9f9ca5dfef (diff) | |
download | cwm-8f7c934cef0f223e5fc0d06b2f0cba386b5b8fd8.tar.gz |
Add 'group-close-[n]' action to close all windows within specified group.
heavily based on a diff from Nam Nguyen.
Diffstat (limited to '')
-rw-r--r-- | kbfunc.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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.161 2019/02/22 19:40:33 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.162 2019/02/25 16:40:49 okan Exp $ */ #include <sys/types.h> @@ -441,6 +441,12 @@ kbfunc_group_only(void *ctx, struct cargs *cargs) } void +kbfunc_group_close(void *ctx, struct cargs *cargs) +{ + group_close(ctx, cargs->flag); +} + +void kbfunc_group_cycle(void *ctx, struct cargs *cargs) { group_cycle(ctx, cargs->flag); |