aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-08-27 17:15:57 +0000
committernicm <nicm>2021-08-27 17:15:57 +0000
commitfd756a150b43d319d08ac4117f34edef9e0438c4 (patch)
tree003f77b6051466412eba1fa0260b9e95c89e3923 /tmux.h
parent24636be42b4b0463afe5c72e1d982f28729a0579 (diff)
downloadrtmux-fd756a150b43d319d08ac4117f34edef9e0438c4.tar.gz
rtmux-fd756a150b43d319d08ac4117f34edef9e0438c4.tar.bz2
rtmux-fd756a150b43d319d08ac4117f34edef9e0438c4.zip
Allow control mode clients to set a hard limit on the window width and
height, GitHub issue 2594.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 96baaf4d..98c3b9a3 100644
--- a/tmux.h
+++ b/tmux.h
@@ -998,6 +998,8 @@ struct window {
u_int sx;
u_int sy;
+ u_int manual_sx;
+ u_int manual_sy;
u_int xpixel;
u_int ypixel;
@@ -1555,6 +1557,10 @@ RB_HEAD(client_files, client_file);
struct client_window {
u_int window;
struct window_pane *pane;
+
+ u_int sx;
+ u_int sy;
+
RB_ENTRY(client_window) entry;
};
RB_HEAD(client_windows, client_window);
@@ -1650,6 +1656,7 @@ struct client {
#define CLIENT_ACTIVEPANE 0x80000000ULL
#define CLIENT_CONTROL_PAUSEAFTER 0x100000000ULL
#define CLIENT_CONTROL_WAITEXIT 0x200000000ULL
+#define CLIENT_WINDOWSIZECHANGED 0x400000000ULL
#define CLIENT_ALLREDRAWFLAGS \
(CLIENT_REDRAWWINDOW| \
CLIENT_REDRAWSTATUS| \
@@ -2465,6 +2472,8 @@ void server_client_push_stderr(struct client *);
const char *server_client_get_cwd(struct client *, struct session *);
void server_client_set_flags(struct client *, const char *);
const char *server_client_get_flags(struct client *);
+struct client_window *server_client_get_client_window(struct client *, u_int);
+struct client_window *server_client_add_client_window(struct client *, u_int);
struct window_pane *server_client_get_pane(struct client *);
void server_client_set_pane(struct client *, struct window_pane *);
void server_client_remove_pane(struct window_pane *);