aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2013-07-08 18:39:20 +0000
committerokan2013-07-08 18:39:20 +0000
commitee5ad9e95b20897654c9830178f8f707b65adbe8 (patch)
tree62b269e17ff50d137c5d39262d73d2e596f37b47 /mousefunc.c
parent63e9ed547d2b6c27553b71a57d79d8afce15e2c5 (diff)
downloadcwm-ee5ad9e95b20897654c9830178f8f707b65adbe8.tar.gz
add support for mouse based group {,r}cycle; from Rodrigo Mosconi. not
bound by default.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c14
1 files changed, 13 insertions, 1 deletions
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 <sys/param.h>
@@ -202,6 +202,18 @@ mousefunc_client_hide(struct client_ctx *cc, void *arg)
}
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)
{
group_menu(arg);