Change overlay_ranges into visible_ranges.

This commit is contained in:
Michael Grant
2026-01-21 19:34:19 +00:00
parent 35485f2b5e
commit a25c14d472
7 changed files with 130 additions and 130 deletions

10
menu.c
View File

@@ -181,17 +181,15 @@ menu_mode_cb(__unused struct client *c, void *data, u_int *cx, u_int *cy)
}
/* Return parts of the input range which are not obstructed by the menu. */
struct visible_ranges *
void
menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py,
u_int nx)
u_int nx, struct visible_ranges *r)
{
struct menu_data *md = data;
struct menu *menu = md->menu;
struct visible_ranges *r;
r = server_client_overlay_range(md->px, md->py, menu->width + 4,
menu->count + 2, px, py, nx);
return (r);
server_client_overlay_range(md->px, md->py, menu->width + 4,
menu->count + 2, px, py, nx, r);
}
void