summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-03 18:42:40 +0000
committernicm <nicm@openbsd.org>2019-05-03 18:42:40 +0000
commita489e4de8eff4ccb0aadbedb05cd5edb38fcbada (patch)
tree77594238ee5e7c4c60e35d9e3424b8d5dc867032 /usr.bin/tmux/cmd.c
parentAdd missing bridge_getbif(), reported by jsg@. (diff)
downloadwireguard-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.c')
-rw-r--r--usr.bin/tmux/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 8dcc9103acd..54f1c86a87a 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.145 2019/05/03 16:51:29 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.146 2019/05/03 18:42:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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)" : "");