diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-12-30 22:27:38 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-12-30 22:27:38 +0000 |
commit | 095e1b410a31166d1f37e8a6ff99e7bb666737ad (patch) | |
tree | f2885d999020fa54720c720230e0d53dfa27c98b /input-keys.c | |
parent | 210b4553a5d6b1147e8a51d47f6fb748b67e5676 (diff) | |
download | rtmux-095e1b410a31166d1f37e8a6ff99e7bb666737ad.tar.gz rtmux-095e1b410a31166d1f37e8a6ff99e7bb666737ad.tar.bz2 rtmux-095e1b410a31166d1f37e8a6ff99e7bb666737ad.zip |
Sync OpenBSD patchset 812:
Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input-keys.c b/input-keys.c index 6207d936..c79bb85d 100644 --- a/input-keys.c +++ b/input-keys.c @@ -1,4 +1,4 @@ -/* $Id: input-keys.c,v 1.45 2010-09-07 19:32:58 nicm Exp $ */ +/* $Id: input-keys.c,v 1.46 2010-12-30 22:27:38 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -203,7 +203,7 @@ input_mouse(struct window_pane *wp, struct mouse_event *m) { char out[8]; - if (wp->screen->mode & MODE_MOUSE) { + if (wp->screen->mode & ALL_MOUSE_MODES) { xsnprintf(out, sizeof out, "\033[M%c%c%c", m->b + 32, m->x + 33, m->y + 33); bufferevent_write(wp->event, out, strlen(out)); |