diff options
author | nicm <nicm> | 2021-02-02 13:03:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-02-02 13:03:03 +0000 |
commit | f0546b0ff816d1ca8199fc726f06639535cf526e (patch) | |
tree | abfdd9d9bf2123c93c89449de240a78eaee157f4 | |
parent | 5c48086e5c8e4ea9633fd6b913d33dcc2b47f2d7 (diff) |
Fix popup mouse position.
-rw-r--r-- | popup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |