diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-11 16:01:13 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-11 16:01:13 +0100 |
commit | aff2a473ec3c16396d6be9d61c5e5dc1201a725b (patch) | |
tree | 828bc514fff183f468c2f509bf509ea6042cdaa7 /tmux.h | |
parent | af82106fae823f55fd3c746e1b48bc8e52a55e68 (diff) | |
parent | b8581ec80e5339be5e2c08cfec70a77f21ba06b2 (diff) | |
download | rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.gz rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.bz2 rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1568,10 +1568,18 @@ struct client_window { }; RB_HEAD(client_windows, client_window); +/* Visible areas not obstructed by overlays. */ +#define OVERLAY_MAX_RANGES 3 +struct overlay_ranges { + u_int px[OVERLAY_MAX_RANGES]; + u_int nx[OVERLAY_MAX_RANGES]; +}; + /* Client connection. */ typedef int (*prompt_input_cb)(struct client *, void *, const char *, int); typedef void (*prompt_free_cb)(void *); -typedef int (*overlay_check_cb)(struct client *, void *, u_int, u_int); +typedef void (*overlay_check_cb)(struct client*, void *, u_int, u_int, u_int, + struct overlay_ranges *); typedef struct screen *(*overlay_mode_cb)(struct client *, void *, u_int *, u_int *); typedef void (*overlay_draw_cb)(struct client *, void *, @@ -2463,6 +2471,8 @@ void server_client_set_overlay(struct client *, u_int, overlay_check_cb, overlay_mode_cb, overlay_draw_cb, overlay_key_cb, overlay_free_cb, overlay_resize_cb, void *); void server_client_clear_overlay(struct client *); +void server_client_overlay_range(u_int, u_int, u_int, u_int, u_int, u_int, + u_int, struct overlay_ranges *); void server_client_set_key_table(struct client *, const char *); const char *server_client_get_key_table(struct client *); int server_client_check_nested(struct client *); @@ -3093,7 +3103,8 @@ int menu_display(struct menu *, int, struct cmdq_item *, u_int, u_int, struct client *, struct cmd_find_state *, menu_choice_cb, void *); struct screen *menu_mode_cb(struct client *, void *, u_int *, u_int *); -int menu_check_cb(struct client *, void *, u_int, u_int); +void menu_check_cb(struct client *, void *, u_int, u_int, u_int, + struct overlay_ranges *); void menu_draw_cb(struct client *, void *, struct screen_redraw_ctx *); void menu_free_cb(struct client *, void *); |