diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-25 22:44:43 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-25 22:44:43 +0000 |
commit | 7fca8660c62e2dd619c7b58b45f9f3a96d87de36 (patch) | |
tree | 213606b7c3e577142a40d950b416fd3194f4e6ac /app/cwm/conf.c | |
parent | c9a31a5a314b7051b33797420c484c817703b18f (diff) |
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 'app/cwm/conf.c')
-rw-r--r-- | app/cwm/conf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index d25936564..c10a18299 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.45 2008/06/25 22:40:27 oga Exp $ + * $Id: conf.c,v 1.46 2008/06/25 22:44:42 oga Exp $ */ #include "headers.h" @@ -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 }, |