aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authoroga2008-06-25 22:44:42 +0000
committeroga2008-06-25 22:44:42 +0000
commit1671eb8f4f1ca145fbdde6054bb0bcf0b23c4fbe (patch)
tree657cd6f8dbee6bd92be708da8498d55acd738b9f /mousefunc.c
parent0ffce5f79391bc8249c6c8387da842fbadc8928d (diff)
downloadcwm-1671eb8f4f1ca145fbdde6054bb0bcf0b23c4fbe.tar.gz
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.c8
1 files changed, 7 insertions, 1 deletions
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"
@@ -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);