X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=a0a0d2d34688a7d1b4c7f61512f5e2bbefc3d7d4;hb=b6d280de6df30167ce9cf30fadefc362e77729e7;hp=6ebea98593193aa0bd592782e91d58fe3faf6bdd;hpb=2b8333f553c14c15398e810353e192eb05938580;p=st.git diff --git a/config.def.h b/config.def.h index 6ebea98..a0a0d2d 100644 --- a/config.def.h +++ b/config.def.h @@ -150,14 +150,21 @@ static unsigned int mousebg = 0; */ static unsigned int defaultattr = 11; +/* + * Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set). + * Note that if you want to use ShiftMask with selmasks, set this to an other + * modifier, set to 0 to not use it. + */ +static uint forcemousemod = ShiftMask; + /* * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { - /* button mask string */ - { Button4, XK_ANY_MOD, "\031" }, - { Button5, XK_ANY_MOD, "\005" }, + /* mask button function argument */ + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; /* Internal keyboard shortcuts. */ @@ -213,13 +220,6 @@ static KeySym mappedkeys[] = { -1 }; */ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; -/* - * Override mouse-select while mask is active (when MODE_MOUSE is set). - * Note that if you want to use ShiftMask with selmasks, set this to an other - * modifier, set to 0 to not use it. - */ -static uint forceselmod = ShiftMask; - /* * This is the huge key array which defines all compatibility to the Linux * world. Please decide about changes wisely.