Add support for borderless menus, like panes. GitHub issue 5447 from harikp2002

at gmail dot com.
This commit is contained in:
nicm
2026-09-21 12:14:32 +00:00
committed by tmux update bot
parent e361b8f8ff
commit dda0e4d489
5 changed files with 77 additions and 47 deletions

4
tmux.h
View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tmux.h,v 1.1443 2026/09/21 10:33:16 nicm Exp $ */
/* $OpenBSD: tmux.h,v 1.1444 2026/09/21 12:14:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1148,6 +1148,7 @@ struct menu {
struct menu_item *items;
u_int count;
u_int width;
u_int item_width;
};
typedef void (*menu_choice_cb)(struct menu *, u_int, key_code, void *);
@@ -4093,6 +4094,7 @@ void menu_add_item(struct menu *, const struct menu_item *,
struct cmdq_item *, struct client *,
struct cmd_find_state *);
void menu_free(struct menu *);
void menu_get_size(struct menu *, enum box_lines, u_int *, u_int *);
int menu_display(struct menu *, int, int, struct cmdq_item *,
u_int, u_int, struct client *, enum box_lines, const char *,
const char *, const char *, struct cmd_find_state *,