The branch, master has been updated
via 7673732c0f6006f2afa5195fc0d8e6032a5580a2 (commit)
from 2dfd3fbd71560aa34cffd2a8de65425876188a4f (commit)
- Log -----------------------------------------------------------------
commit 7673732c0f6006f2afa5195fc0d8e6032a5580a2
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Handle input mouse positions <33 (we already can generate them).
---
tty-keys.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/tty-keys.c b/tty-keys.c
index 3055f39..d1c9d87 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -676,11 +676,17 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t
len, size_t *size)
log_debug("mouse input: %.*s", (int) *size, buf);
/* Check and return the mouse input. */
- if (b < 32 || x < 33 || y < 33)
+ if (b < 32)
return (-1);
b -= 32;
- x -= 33;
- y -= 33;
+ if (x >= 33)
+ x -= 33;
+ else
+ x = 256 - x;
+ if (y >= 33)
+ y -= 33;
+ else
+ y = 256 - y;
} else if (buf[2] == '<') {
/* Read the three inputs. */
*size = 3;
-----------------------------------------------------------------------
Summary of changes:
tty-keys.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs