summary refs log tree commit diff
path: root/conf.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 /conf.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 'conf.c')
-rw-r--r--conf.c2
1 files changed, 2 insertions, 0 deletions
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 },