From 1671eb8f4f1ca145fbdde6054bb0bcf0b23c4fbe Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 25 Jun 2008 22:44:42 +0000 Subject: 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. --- mousefunc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index d8619ac..e4e8e9b 100644 --- a/mousefunc.c +++ b/mousefunc.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: mousefunc.c,v 1.1 2008/06/14 21:48:54 okan Exp $ + * $Id: mousefunc.c,v 1.2 2008/06/25 22:44:42 oga Exp $ */ #include "headers.h" @@ -48,6 +48,12 @@ mousefunc_window_lower(struct client_ctx *cc, void *arg) client_lower(cc); } +void +mousefunc_window_hide(struct client_ctx *cc, void *arg) +{ + client_hide(cc); +} + void mousefunc_menu_group(struct client_ctx *cc, void *arg) { -- cgit v1.2.3-2-gb3c3