aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2019-10-10 23:42:30 +0300
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-10-13 21:46:31 +0200
commitb6d280de6df30167ce9cf30fadefc362e77729e7 (patch)
tree7e1ab2ec0b42e2149a41f3a6f8165ba11f54f088 /config.def.h
parentba7f4d69af62d20e13fea78a408095e017410651 (diff)
downloadst-patched-b6d280de6df30167ce9cf30fadefc362e77729e7.tar.bz2
st-patched-b6d280de6df30167ce9cf30fadefc362e77729e7.tar.xz
st-patched-b6d280de6df30167ce9cf30fadefc362e77729e7.zip
mouse shortcuts: allow override for all shortcuts
Allow forceselmod to override all mouse shortcuts rather than only selection, and rename it to forcemousemod as it's now more appropriate. This will affect mouse shortcuts which use mask other than XK_ANY_MOD. This does not affect the default behavior because the default mouse shortcuts (wheel) use XK_ANY_MOD, where forceselmod already activated the override also before this change. Previously, if a mouse shortcut was configured with a specific mod and forceselmod was held, then the shortcut did not execute unless the configured mod included forceselmod.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index 36ff6ce..a0a0d2d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -151,6 +151,13 @@ static unsigned int mousebg = 0;
151static unsigned int defaultattr = 11; 151static unsigned int defaultattr = 11;
152 152
153/* 153/*
154 * Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set).
155 * Note that if you want to use ShiftMask with selmasks, set this to an other
156 * modifier, set to 0 to not use it.
157 */
158static uint forcemousemod = ShiftMask;
159
160/*
154 * Internal mouse shortcuts. 161 * Internal mouse shortcuts.
155 * Beware that overloading Button1 will disable the selection. 162 * Beware that overloading Button1 will disable the selection.
156 */ 163 */
@@ -214,13 +221,6 @@ static KeySym mappedkeys[] = { -1 };
214static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; 221static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;
215 222
216/* 223/*
217 * Override mouse-select while mask is active (when MODE_MOUSE is set).
218 * Note that if you want to use ShiftMask with selmasks, set this to an other
219 * modifier, set to 0 to not use it.
220 */
221static uint forceselmod = ShiftMask;
222
223/*
224 * This is the huge key array which defines all compatibility to the Linux 224 * This is the huge key array which defines all compatibility to the Linux
225 * world. Please decide about changes wisely. 225 * world. Please decide about changes wisely.
226 */ 226 */