diff options
author | nicm <nicm> | 2014-07-21 20:45:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-07-21 20:45:35 +0000 |
commit | b8b00aad5d3de0015367a6e23e800950ff7fc2df (patch) | |
tree | b1771aa1cbe4831ea3f20f656b1d4468a6e1860f | |
parent | 8e4ae12b4d0559a827f740f60b11f386f27f89dd (diff) | |
download | rtmux-b8b00aad5d3de0015367a6e23e800950ff7fc2df.tar.gz rtmux-b8b00aad5d3de0015367a6e23e800950ff7fc2df.tar.bz2 rtmux-b8b00aad5d3de0015367a6e23e800950ff7fc2df.zip |
Revert the up/down wheel emulation for now, there will be a better way
to do this along later for those who want it.
-rw-r--r-- | input-keys.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/input-keys.c b/input-keys.c index c75e28d3..7ce71931 100644 --- a/input-keys.c +++ b/input-keys.c @@ -205,21 +205,6 @@ input_mouse(struct window_pane *wp, struct session *s, struct mouse_event *m) char buf[40]; size_t len; struct paste_buffer *pb; - u_int i; - - /* - * If the alternate screen is active and hasn't enabled the mouse, send - * up and down key presses for the mouse wheel. - */ - if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) { - for (i = 0; i < m->scroll; i++) { - if (m->wheel == MOUSE_WHEEL_UP) - input_key(wp, KEYC_UP); - else - input_key(wp, KEYC_DOWN); - } - return; - } if (wp->screen->mode & ALL_MOUSE_MODES) { /* |