mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
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.
This commit is contained in:
@ -448,6 +448,8 @@ server_client_check_mouse(struct client *c, struct key_event *event)
|
||||
type = DRAG;
|
||||
if (c->tty.mouse_drag_flag) {
|
||||
x = m->x, y = m->y, b = m->b;
|
||||
if (x == m->lx && y == m->ly)
|
||||
return (KEYC_UNKNOWN);
|
||||
log_debug("drag update at %u,%u", x, y);
|
||||
} else {
|
||||
x = m->lx, y = m->ly, b = m->lb;
|
||||
@ -555,8 +557,6 @@ have_event:
|
||||
return (KEYC_UNKNOWN);
|
||||
px = px + m->ox;
|
||||
py = py + m->oy;
|
||||
m->x = x + m->ox;
|
||||
m->y = y + m->oy;
|
||||
|
||||
/* Try the pane borders if not zoomed. */
|
||||
if (~s->curw->window->flags & WINDOW_ZOOMED) {
|
||||
|
Reference in New Issue
Block a user