diff options
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 4bc7b9db100..c448a50ffd6 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.64 2011/03/27 20:27:27 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.65 2011/04/18 20:57:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |