aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-03 18:42:40 +0000
committernicm <nicm>2019-05-03 18:42:40 +0000
commit4097257beffc100d1eb0948d1390cea952e5fe4a (patch)
tree841810620623c7db4054370430bafc5241dd074e /cmd.c
parent84e46525136481ba5bd60e73ae2fffdf74c0417c (diff)
downloadrtmux-4097257beffc100d1eb0948d1390cea952e5fe4a.tar.gz
rtmux-4097257beffc100d1eb0948d1390cea952e5fe4a.tar.bz2
rtmux-4097257beffc100d1eb0948d1390cea952e5fe4a.zip
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.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c4
1 files changed, 2 insertions, 2 deletions
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)" : "");