aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-03 21:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-03 21:02:26 +0100
commit4d505574dc515d6e554b3f37e9aa5bdb8930c6cb (patch)
treef1b3e62f64f9fa6e2f03d5be0ddefbef0408f4fd /cmd.c
parenta14512e23ef902ee0e1ef3188069f4a747dbbb6d (diff)
parente8e4f4ec3e4de0bd0e4eb2a7ee995fb6f5f7f937 (diff)
downloadrtmux-4d505574dc515d6e554b3f37e9aa5bdb8930c6cb.tar.gz
rtmux-4d505574dc515d6e554b3f37e9aa5bdb8930c6cb.tar.bz2
rtmux-4d505574dc515d6e554b3f37e9aa5bdb8930c6cb.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd.c b/cmd.c
index 13d0570f..1d52da65 100644
--- a/cmd.c
+++ b/cmd.c
@@ -483,8 +483,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)" : "");