aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:30:28 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:30:28 +0100
commit3f1fc9cde33aac1fedd3ed9110f0d3e31308e92a (patch)
tree789c65808ce8342d606b249e298294719ef39447 /popup.c
parent8110c7a25f257b13f92f34559efedba204e6ea98 (diff)
downloadrtmux-3f1fc9cde33aac1fedd3ed9110f0d3e31308e92a.tar.gz
rtmux-3f1fc9cde33aac1fedd3ed9110f0d3e31308e92a.tar.bz2
rtmux-3f1fc9cde33aac1fedd3ed9110f0d3e31308e92a.zip
Get the whole overlay screen not just the mode so cursor changes are included.
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 c13a38cf..826e1571 100644
--- a/popup.c
+++ b/popup.c
@@ -136,7 +136,7 @@ popup_write_screen(struct client *c, struct popup_data *pd)
screen_write_stop(&ctx);
}
-static int
+static struct screen *
popup_mode_cb(struct client *c, u_int *cx, u_int *cy)
{
struct popup_data *pd = c->overlay_data;
@@ -145,7 +145,7 @@ popup_mode_cb(struct client *c, u_int *cx, u_int *cy)
return (0);
*cx = pd->px + 1 + pd->s.cx;
*cy = pd->py + 1 + pd->s.cy;
- return (pd->s.mode);
+ return (&pd->s);
}
static int