diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-18 22:03:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-18 22:03:55 +0000 |
commit | 7aafee7e48160318082b503e6459d8b224dd28bf (patch) | |
tree | 903d1d6f75e1bc8f5620f92e7f9f76a68fdb281a | |
parent | dc6bd984259dc94376ebf1dc2315a4567dfececb (diff) | |
download | rtmux-7aafee7e48160318082b503e6459d8b224dd28bf.tar.gz rtmux-7aafee7e48160318082b503e6459d8b224dd28bf.tar.bz2 rtmux-7aafee7e48160318082b503e6459d8b224dd28bf.zip |
|PatchSet 894
|Date: 2011/04/18 21:57:16
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|The mouse should only work in copy mode if mode-mouse is set, not just
|mouse-select-pane.
-rw-r--r-- | window.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.146 2011-04-06 22:16:33 nicm Exp $ */ +/* $Id: window.c,v 1.147 2011-04-18 22:03:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -890,7 +890,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); |