Sync OpenBSD patchset 812:

Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.
This commit is contained in:
Tiago Cunha
2010-12-30 22:27:38 +00:00
parent 210b4553a5
commit 095e1b410a
8 changed files with 75 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: server-client.c,v 1.48 2010-12-22 15:31:00 tcunha Exp $ */
/* $Id: server-client.c,v 1.49 2010-12-30 22:27:38 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -449,7 +449,7 @@ server_client_reset_state(struct client *c)
mode = s->mode;
if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL &&
options_get_number(oo, "mouse-select-pane"))
mode |= MODE_MOUSE;
mode |= MODE_MOUSE_STANDARD;
tty_update_mode(&c->tty, mode);
tty_reset(&c->tty);
}