Support all four of the xterm mouse modes. Based on a diff from hsim at

gmx.li.
This commit is contained in:
Nicholas Marriott
2010-12-29 21:49:06 +00:00
parent 230e39ec35
commit f7c42c21ba
8 changed files with 67 additions and 29 deletions

View File

@@ -450,7 +450,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);
}