From ee5ad9e95b20897654c9830178f8f707b65adbe8 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Jul 2013 18:39:20 +0000 Subject: add support for mouse based group {,r}cycle; from Rodrigo Mosconi. not bound by default. --- mousefunc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index c44c3fc..366ad9e 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.54 2013/07/08 18:19:22 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.55 2013/07/08 18:39:20 okan Exp $ */ #include @@ -201,6 +201,18 @@ mousefunc_client_hide(struct client_ctx *cc, void *arg) client_hide(cc); } +void +mousefunc_client_cyclegroup(struct client_ctx *cc, void *arg) +{ + group_cycle(cc->sc, CWM_CYCLE); +} + +void +mousefunc_client_rcyclegroup(struct client_ctx *cc, void *arg) +{ + group_cycle(cc->sc, CWM_RCYCLE); +} + void mousefunc_menu_group(struct client_ctx *cc, void *arg) { -- cgit v1.2.3-2-gb3c3