aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-07-21 08:06:36 +0000
committernicm <nicm>2021-07-21 08:06:36 +0000
commitf0e02387b2e13ba2a924b4a6c47da38b22bd8d3e (patch)
treedee378866cb0e68c613c1fd8f3c4eb46176804fe /tmux.h
parent732c72c98e9b3aa6b1d33f1eab9fa16874d92e7d (diff)
downloadrtmux-f0e02387b2e13ba2a924b4a6c47da38b22bd8d3e.tar.gz
rtmux-f0e02387b2e13ba2a924b4a6c47da38b22bd8d3e.tar.bz2
rtmux-f0e02387b2e13ba2a924b4a6c47da38b22bd8d3e.zip
Do not close popups on resize, instead adjust them to fit, from Anindya
Mukherjee.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index deb66292..03c9e702 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1629,6 +1629,7 @@ typedef struct screen *(*overlay_mode_cb)(struct client *, u_int *, u_int *);
typedef void (*overlay_draw_cb)(struct client *, struct screen_redraw_ctx *);
typedef int (*overlay_key_cb)(struct client *, struct key_event *);
typedef void (*overlay_free_cb)(struct client *);
+typedef void (*overlay_resize_cb)(struct client *);
struct client {
const char *name;
struct tmuxpeer *peer;
@@ -1776,6 +1777,7 @@ struct client {
overlay_draw_cb overlay_draw;
overlay_key_cb overlay_key;
overlay_free_cb overlay_free;
+ overlay_resize_cb overlay_resize;
void *overlay_data;
struct event overlay_timer;
@@ -2483,7 +2485,7 @@ RB_PROTOTYPE(client_windows, client_window, entry, server_client_window_cmp);
u_int server_client_how_many(void);
void server_client_set_overlay(struct client *, u_int, overlay_check_cb,
overlay_mode_cb, overlay_draw_cb, overlay_key_cb,
- overlay_free_cb, void *);
+ overlay_free_cb, overlay_resize_cb, void *);
void server_client_clear_overlay(struct client *);
void server_client_set_key_table(struct client *, const char *);
const char *server_client_get_key_table(struct client *);