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-resize-pane.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-resize-pane.c')
-rw-r--r-- | cmd-resize-pane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c index 410a6257..c978edfb 100644 --- a/cmd-resize-pane.c +++ b/cmd-resize-pane.c @@ -143,7 +143,7 @@ cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m) } w = wl->window; - y = m->y; x = m->x; + y = m->y + m->oy; x = m->x + m->ox; if (m->statusat == 0 && y > 0) y--; else if (m->statusat > 0 && y >= (u_int)m->statusat) |