aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-04-18 20:57:16 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-04-18 20:57:16 +0000
commit0f97ac42210a9eedb21c5add9b8c2fb52ef84881 (patch)
tree277460b30d9162ca8131d5594f0f607131b236d8
parent0bb211978121292518d59430e3547685882078bc (diff)
downloadrtmux-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index 4270013f..d5f56898 100644
--- a/window.c
+++ b/window.c
@@ -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);