Sync OpenBSD patchset 198:

Add a mode-mouse option to prevent tmux taking over the mouse in choice or
copy modes.
This commit is contained in:
Tiago Cunha
2009-07-30 20:32:05 +00:00
parent 8ce1f0b047
commit ec3dba01b2
5 changed files with 20 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $Id: window-copy.c,v 1.71 2009-07-28 23:11:18 tcunha Exp $ */
/* $Id: window-copy.c,v 1.72 2009-07-30 20:32:05 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -104,7 +104,8 @@ window_copy_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_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)