summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2021-02-02 13:03:03 +0000
committernicm <nicm>2021-02-02 13:03:03 +0000
commitf0546b0ff816d1ca8199fc726f06639535cf526e (patch)
treeabfdd9d9bf2123c93c89449de240a78eaee157f4
parent5c48086e5c8e4ea9633fd6b913d33dcc2b47f2d7 (diff)
Fix popup mouse position.
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
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);