aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index 8065981..d792cfc 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -758,6 +758,20 @@ static int runes_window_backend_handle_builtin_button_press(
runes_window_backend_paste(t, e->time);
return 1;
break;
+ case Button4:
+ if (t->scr.row_visible_offset < t->scr.row_count - t->scr.max.row) {
+ t->scr.row_visible_offset++;
+ t->scr.dirty = 1;
+ runes_window_backend_flush(t);
+ }
+ break;
+ case Button5:
+ if (t->scr.row_visible_offset > 0) {
+ t->scr.row_visible_offset--;
+ t->scr.dirty = 1;
+ runes_window_backend_flush(t);
+ }
+ break;
default:
break;
}