diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-04-18 20:57:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-04-18 20:57:16 +0000 |
commit | 0f97ac42210a9eedb21c5add9b8c2fb52ef84881 (patch) | |
tree | 277460b30d9162ca8131d5594f0f607131b236d8 | |
parent | 0bb211978121292518d59430e3547685882078bc (diff) | |
download | rtmux-0f97ac42210a9eedb21c5add9b8c2fb52ef84881.tar.gz rtmux-0f97ac42210a9eedb21c5add9b8c2fb52ef84881.tar.bz2 rtmux-0f97ac42210a9eedb21c5add9b8c2fb52ef84881.zip |
The mouse should only work in copy mode if mode-mouse is set, not just
mouse-select-pane.
-rw-r--r-- | window.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -884,7 +884,8 @@ window_pane_mouse( m->y -= wp->yoff; if (wp->mode != NULL) { - if (wp->mode->mouse != NULL) + if (wp->mode->mouse != NULL && + options_get_number(&wp->window->options, "mode-mouse")) wp->mode->mouse(wp, sess, m); } else if (wp->fd != -1) input_mouse(wp, m); |