diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-30 07:04:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-30 07:04:50 +0000 |
commit | a419e73f7a356ef3d63f79e3b870fbd4defd74bc (patch) | |
tree | 38d3b32c6aeb06b692a16adeae5bceb9624cce7b /window-choose.c | |
parent | 2b331084b4c69dafac6e2bb1d5b02193666cf0e0 (diff) |
Add a mode-mouse option to prevent tmux taking over the mouse in choice or copy
modes.
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c index e7d847de..b1d9192a 100644 --- a/window-choose.c +++ b/window-choose.c @@ -123,7 +123,8 @@ window_choose_init(struct window_pane *wp) s = &data->screen; screen_init(s, screen_size_x(&wp->base), screen_size_y(&wp->base), 0); s->mode &= ~MODE_CURSOR; - s->mode |= MODE_MOUSE; + if (options_get_number(&wp->window->options, "mode-mouse")) + s->mode |= MODE_MOUSE; keys = options_get_number(&wp->window->options, "mode-keys"); if (keys == MODEKEY_EMACS) |