diff options
author | nicm <nicm> | 2019-05-03 18:42:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-03 18:42:40 +0000 |
commit | 4097257beffc100d1eb0948d1390cea952e5fe4a (patch) | |
tree | 841810620623c7db4054370430bafc5241dd074e /cmd.c | |
parent | 84e46525136481ba5bd60e73ae2fffdf74c0417c (diff) | |
download | rtmux-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)" : ""); |