summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--calmwm.h1
-rw-r--r--conf.c2
-rw-r--r--cwm.14
-rw-r--r--cwmrc.52
-rw-r--r--mousefunc.c6
5 files changed, 14 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 0432817..3844fd8 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -457,6 +457,7 @@ void			 mousefunc_window_move(struct client_ctx *, void *);
 void			 mousefunc_window_grouptoggle(struct client_ctx *,
 			    void *);
 void			 mousefunc_window_lower(struct client_ctx *, void *);
+void			 mousefunc_window_hide(struct client_ctx *, void *);
 void			 mousefunc_menu_group(struct client_ctx *, void *);
 void			 mousefunc_menu_unhide(struct client_ctx *, void *);
 void			 mousefunc_menu_cmd(struct client_ctx *, void *);
diff --git a/conf.c b/conf.c
index b519090..94ea914 100644
--- a/conf.c
+++ b/conf.c
@@ -166,6 +166,7 @@ conf_init(struct conf *c)
 	conf_mousebind(c, "CM-1", "window_grouptoggle");
 	conf_mousebind(c, "M-2", "window_resize");
 	conf_mousebind(c, "M-3", "window_lower");
+	conf_mousebind(c, "CMS-3", "window_hide");
 
 	/* Default term/lock */
 	strlcpy(c->termpath, "xterm", sizeof(c->termpath));
@@ -406,6 +407,7 @@ struct {
 	{ "window_grouptoggle", mousefunc_window_grouptoggle,
 	    MOUSEBIND_CTX_WIN },
 	{ "window_lower", mousefunc_window_lower, MOUSEBIND_CTX_WIN },
+	{ "window_hide", mousefunc_window_hide, MOUSEBIND_CTX_WIN },
 	{ "menu_group", mousefunc_menu_group, MOUSEBIND_CTX_ROOT },
 	{ "menu_unhide", mousefunc_menu_unhide, MOUSEBIND_CTX_ROOT },
 	{ "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT },
diff --git a/cwm.1 b/cwm.1
index 8a49542..55c66d6 100644
--- a/cwm.1
+++ b/cwm.1
@@ -15,7 +15,7 @@
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
 .\" The following requests are required for all man pages.
-.Dd $Mdocdate: June 5 2008 $
+.Dd $Mdocdate: June 25 2008 $
 .Dt CWM 1
 .Os
 .Sh NAME
@@ -127,6 +127,8 @@ Toggle a window's membership in the current group.
 Resize a window/select a window.
 .It M-M3
 Lower a window.
+.It CMS-M3
+Hide a window.
 .El
 .Pp
 The options for
diff --git a/cwmrc.5 b/cwmrc.5
index 95df88a..e0b4f08 100644
--- a/cwmrc.5
+++ b/cwmrc.5
@@ -314,6 +314,8 @@ move a window
 resize a window
 .It window_lower
 lower a window
+.It window_hide
+hide a window
 .It window_grouptoggle
 toggle group membership of a window
 .It menu_group
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);