aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2019-02-25 16:40:49 +0000
committerokan2019-02-25 16:40:49 +0000
commit8f7c934cef0f223e5fc0d06b2f0cba386b5b8fd8 (patch)
tree9b2063e8cccf02d9d7066bc7d2109a74f2805f3e /kbfunc.c
parentcd6bd49abd762f448b4b352b69e2cc9f9ca5dfef (diff)
downloadcwm-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 'kbfunc.c')
-rw-r--r--kbfunc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index cb6c65d..699676e 100644
--- a/kbfunc.c
+++ b/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.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);