diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-04-05 12:36:14 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-04-05 12:36:14 +0100 |
commit | 0c99c7dbff21082a5f0774e6193b9c9b9a160882 (patch) | |
tree | 852fa9fde3126091fa90ee6604097373076772b1 /window-choose.c | |
parent | 806d5dcb17c26d2abcbf4328a9ec419ada3d4a3f (diff) | |
parent | acef311fe356f408690e9f94727ed63a934b742f (diff) | |
download | rtmux-0c99c7dbff21082a5f0774e6193b9c9b9a160882.tar.gz rtmux-0c99c7dbff21082a5f0774e6193b9c9b9a160882.tar.bz2 rtmux-0c99c7dbff21082a5f0774e6193b9c9b9a160882.zip |
Merge branch 'obsd-master'
Conflicts:
Makefile
tty-keys.c
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c index e7578fe6..e75858ef 100644 --- a/window-choose.c +++ b/window-choose.c @@ -721,7 +721,17 @@ window_choose_mouse( struct window_choose_mode_data *data = wp->modedata; struct screen *s = &data->screen; struct window_choose_mode_item *item; - u_int idx; + u_int i, idx; + + if (m->event == MOUSE_EVENT_WHEEL) { + for (i = 0; i < m->scroll; i++) { + if (m->wheel == MOUSE_WHEEL_UP) + window_choose_key(wp, sess, KEYC_UP); + else + window_choose_key(wp, sess, KEYC_DOWN); + } + return; + } if (~m->event & MOUSE_EVENT_CLICK) return; |