summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-04 22:09:40 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-04 22:11:23 +0200
commit52fe157384f9a493b7f96f9e1374a56cc7369280 (patch)
tree237bd75b2b916dd7df3540b75b6e01f4399397e6 /config.h
parent4c01cfd24e5f32beb00abaed8d110856559610b0 (diff)
parentfa253f077f19b3220c7655b81bd91e52f4367803 (diff)
downloadst-52fe157384f9a493b7f96f9e1374a56cc7369280.tar.gz
st-52fe157384f9a493b7f96f9e1374a56cc7369280.tar.bz2
st-52fe157384f9a493b7f96f9e1374a56cc7369280.zip
Merge remote-tracking branch 'suckless/master'
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.h b/config.h
index bf8f775..aecbe46 100644
--- a/config.h
+++ b/config.h
@@ -43,6 +43,10 @@ static unsigned int tripleclicktimeout = 600;
/* alt screens */
int allowaltscreen = 1;
+/* allow certain non-interactive (insecure) window operations such as:
+ setting the clipboard text */
+int allowwindowops = 0;
+
/*
* draw latency range in ms - from new content/keypress/etc until drawing.
* within this range, st draws when content stops arriving (idle). mostly it's
@@ -162,10 +166,12 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
- { XK_ANY_MOD, Button4, kscrollup, {.i = 2} },
- { XK_ANY_MOD, Button5, kscrolldown, {.i = 2} },
+ { XK_ANY_MOD, Button4, kscrollup, {.i = 3} },
+ { XK_ANY_MOD, Button5, kscrolldown, {.i = 3} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
+ { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
+ { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
};