From a53017c8b47f511cf0462ac910cf9223a31ceb2f Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sun, 28 Apr 2013 17:42:30 +0200 Subject: Add a possibility to modify the string sent by mouse buttons. Thanks Alexander Rezinsky for the suggestion! --- config.def.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index b44fe17..b0bc752 100644 --- a/config.def.h +++ b/config.def.h @@ -74,7 +74,15 @@ static unsigned int defaultcs = 256; static unsigned int defaultitalic = 11; static unsigned int defaultunderline = 7; -/* Internal shortcuts. */ +/* Internal mouse shortcuts. */ +/* Beware that overloading Button1 will disable the selection. */ +static Mousekey mshortcuts[] = { + /* keysym mask string */ + { Button4, XK_ANY_MOD, "\031"}, + { Button5, XK_ANY_MOD, "\005"}, +}; + +/* Internal keyboard shortcuts. */ #define MODKEY Mod1Mask static Shortcut shortcuts[] = { -- cgit v1.2.3-13-gbd6f