From 4097257beffc100d1eb0948d1390cea952e5fe4a Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 3 May 2019 18:42:40 +0000 Subject: Do not store the mouse position we calculate as the start of a drag back into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710. --- cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 57b3350c..a0ec6aa6 100644 --- a/cmd.c +++ b/cmd.c @@ -484,8 +484,8 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp, x = m->lx + m->ox; y = m->ly + m->oy; } else { - x = m->x; - y = m->y; + x = m->x + m->ox; + y = m->y + m->oy; } log_debug("%s: x=%u, y=%u%s", __func__, x, y, last ? " (last)" : ""); -- cgit