diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-29 21:49:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-29 21:49:06 +0000 |
commit | f7c42c21bacf84af52079b239a18294851fbdb3a (patch) | |
tree | c5d086441c15ac8629880b2043f95ea3758a719d /input-keys.c | |
parent | 230e39ec3558142c94858efae53c36ab0efbcf59 (diff) | |
download | rtmux-f7c42c21bacf84af52079b239a18294851fbdb3a.tar.gz rtmux-f7c42c21bacf84af52079b239a18294851fbdb3a.tar.bz2 rtmux-f7c42c21bacf84af52079b239a18294851fbdb3a.zip |
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c index b731f6dc..81976123 100644 --- a/input-keys.c +++ b/input-keys.c @@ -204,7 +204,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)); |