summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-13 18:54:54 +0000
committernicm <nicm>2021-08-13 18:54:54 +0000
commit7789639b5d1818ebbac7bfab74959e4968d7cdf2 (patch)
tree1875b3fa863cb664f34b8c5b5e6278abca63bcdf /screen-redraw.c
parent614611a8bd65e82efccdf44d4f9c23c0f35ed293 (diff)
Add a menu when a popup is present (mouse only for now).
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c5
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);