diff options
author | nicm <nicm> | 2021-08-13 18:54:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-13 18:54:54 +0000 |
commit | 7789639b5d1818ebbac7bfab74959e4968d7cdf2 (patch) | |
tree | 1875b3fa863cb664f34b8c5b5e6278abca63bcdf /screen-redraw.c | |
parent | 614611a8bd65e82efccdf44d4f9c23c0f35ed293 (diff) | |
download | rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.tar.gz rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.tar.bz2 rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.zip |
Add a menu when a popup is present (mouse only for now).
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 3df57383..82e390cd 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -624,7 +624,7 @@ screen_redraw_screen(struct client *c) } if (c->overlay_draw != NULL && (flags & CLIENT_REDRAWOVERLAY)) { log_debug("%s: redrawing overlay", c->name); - c->overlay_draw(c, &ctx); + c->overlay_draw(c, c->overlay_data, &ctx); } tty_reset(&c->tty); @@ -690,7 +690,8 @@ screen_redraw_draw_borders_cell(struct screen_redraw_ctx *ctx, u_int i, u_int j) struct grid_cell gc; const struct grid_cell *tmp; - if (c->overlay_check != NULL && !c->overlay_check(c, x, y)) + if (c->overlay_check != NULL && + !c->overlay_check(c, c->overlay_data, x, y)) return; cell_type = screen_redraw_check_cell(c, x, y, pane_status, &wp); |