From f0546b0ff816d1ca8199fc726f06639535cf526e Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 2 Feb 2021 13:03:03 +0000 Subject: Fix popup mouse position. --- popup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'popup.c') diff --git a/popup.c b/popup.c index 97acebfd..675bb2f9 100644 --- a/popup.c +++ b/popup.c @@ -323,8 +323,8 @@ popup_key_cb(struct client *c, struct key_event *event) return (0); if (KEYC_IS_MOUSE(event->key)) { /* Must be inside, checked already. */ - if (!input_key_get_mouse(&pd->s, m, m->x - pd->px, - m->y - pd->py, &buf, &len)) + if (!input_key_get_mouse(&pd->s, m, m->x - pd->px - 1, + m->y - pd->py - 1, &buf, &len)) return (0); bufferevent_write(job_get_event(pd->job), buf, len); return (0); -- cgit v1.2.3