summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authoroga <oga>2008-06-25 22:44:42 +0000
committeroga <oga>2008-06-25 22:44:42 +0000
commit993fd4311f8514a93138e3f0547e13075db971c5 (patch)
tree37afbeb305298cf148dca7be83f3ee0fdee001ac /mousefunc.c
parenta6ec6cd9e98d9ef0cb4a03daabd108d4f844592d (diff)
downloadcwm-993fd4311f8514a93138e3f0547e13075db971c5.tar.gz
cwm-993fd4311f8514a93138e3f0547e13075db971c5.tar.xz
cwm-993fd4311f8514a93138e3f0547e13075db971c5.zip
Allow a mouse binding to hide a window, and add a default keybinding for CMS-M3,
so it's hard to press by accident, but there if you need it.

requested (in a way) and tested by johan and todd.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mousefunc.c b/mousefunc.c
index cd3151f..af331d5 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -49,6 +49,12 @@ mousefunc_window_lower(struct client_ctx *cc, void *arg)
 }
 
 void
+mousefunc_window_hide(struct client_ctx *cc, void *arg)
+{
+	client_hide(cc);
+}
+
+void
 mousefunc_menu_group(struct client_ctx *cc, void *arg)
 {
 	group_menu(arg);