summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-02-02 14:01:19 +0000
committerThomas Adam <thomas@xteddy.org>2021-02-02 14:01:19 +0000
commit86955dbfe114292e22ed2eb37bee993bef411a2d (patch)
tree936db2a54051cc7fb00fa789b48d406702c0b878 /popup.c
parenta5d69ab4b012113066f873ac5a6c303b4082cd52 (diff)
parentf0546b0ff816d1ca8199fc726f06639535cf526e (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/popup.c b/popup.c
index 0ad20c5f..4db56495 100644
--- a/popup.c
+++ b/popup.c
@@ -322,8 +322,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);