aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-09-19 09:02:30 +0000
committernicm <nicm>2019-09-19 09:02:30 +0000
commit647887b794c00285047aa54ac0d44ae50c7847d7 (patch)
treec173a9c9f68dd40248df0b0685189241c074ec4d /tmux.h
parentd01847735903496c25e1d24375b911edffa56ef8 (diff)
downloadrtmux-647887b794c00285047aa54ac0d44ae50c7847d7.tar.gz
rtmux-647887b794c00285047aa54ac0d44ae50c7847d7.tar.bz2
rtmux-647887b794c00285047aa54ac0d44ae50c7847d7.zip
Add a "latest" window-size option which tries to size windows based on
the most recently used client. From Tommie Gannert in GitHub issue 1869 based on earlier changes from me.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 5f7e5104..6e6fee96 100644
--- a/tmux.h
+++ b/tmux.h
@@ -905,6 +905,7 @@ RB_HEAD(window_pane_tree, window_pane);
/* Window structure. */
struct window {
u_int id;
+ void *latest;
char *name;
struct event name_event;
@@ -970,6 +971,7 @@ TAILQ_HEAD(winlink_stack, winlink);
#define WINDOW_SIZE_LARGEST 0
#define WINDOW_SIZE_SMALLEST 1
#define WINDOW_SIZE_MANUAL 2
+#define WINDOW_SIZE_LATEST 3
/* Pane border status option. */
#define PANE_STATUS_OFF 0
@@ -1670,6 +1672,7 @@ struct spawn_context {
struct session *s;
struct winlink *wl;
+ struct client *c;
struct window_pane *wp0;
struct layout_cell *lc;
@@ -2195,6 +2198,7 @@ void status_prompt_save_history(void);
void resize_window(struct window *, u_int, u_int);
void default_window_size(struct session *, struct window *, u_int *,
u_int *, int);
+void recalculate_size(struct window *);
void recalculate_sizes(void);
/* input.c */