aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 97dd2db..22729e9 100644
--- a/main.c
+++ b/main.c
@@ -394,7 +394,8 @@ void on_buttonpress(XButtonEvent *bev) {
break;
case Button4:
case Button5:
- if (tns_scroll(&tns, bev->button == Button4 ? DIR_UP : DIR_DOWN))
+ if (tns_scroll(&tns, bev->button == Button4 ? DIR_UP : DIR_DOWN,
+ (bev->state & ControlMask) != 0))
redraw();
break;
}