diff options
author | 2019-05-03 18:42:40 +0000 | |
---|---|---|
committer | 2019-05-03 18:42:40 +0000 | |
commit | a489e4de8eff4ccb0aadbedb05cd5edb38fcbada (patch) | |
tree | 77594238ee5e7c4c60e35d9e3424b8d5dc867032 /usr.bin/tmux/cmd-resize-pane.c | |
parent | Add missing bridge_getbif(), reported by jsg@. (diff) | |
download | wireguard-openbsd-a489e4de8eff4ccb0aadbedb05cd5edb38fcbada.tar.xz wireguard-openbsd-a489e4de8eff4ccb0aadbedb05cd5edb38fcbada.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 'usr.bin/tmux/cmd-resize-pane.c')
-rw-r--r-- | usr.bin/tmux/cmd-resize-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-resize-pane.c b/usr.bin/tmux/cmd-resize-pane.c index e2711934027..d5d78eff37d 100644 --- a/usr.bin/tmux/cmd-resize-pane.c +++ b/usr.bin/tmux/cmd-resize-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-resize-pane.c,v 1.36 2019/05/03 16:51:29 nicm Exp $ */ +/* $OpenBSD: cmd-resize-pane.c,v 1.37 2019/05/03 18:42:40 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |