aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2018-06-08 20:54:22 +0000
committernicm <nicm>2018-06-08 20:54:22 +0000
commitf6bad7efd76109de122bb3b670d0e18f86ec38bb (patch)
tree94e176701edc28c07975a8cfbe22b2221867ac66 /tmux.h
parentff45b2d343fea6b0c477ed2cb5bbe2d30922ea3e (diff)
downloadrtmux-f6bad7efd76109de122bb3b670d0e18f86ec38bb.tar.gz
rtmux-f6bad7efd76109de122bb3b670d0e18f86ec38bb.tar.bz2
rtmux-f6bad7efd76109de122bb3b670d0e18f86ec38bb.zip
Instead of working out which pane to resize with the mouse by walking
the panes list, look through the layout cells for the nearest border and resize that cell. From Dan Aloni in GitHub issue 1374.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index d46dca2e..d6e4ae0b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -2203,6 +2203,9 @@ void layout_free_cell(struct layout_cell *);
void layout_print_cell(struct layout_cell *, const char *, u_int);
void layout_destroy_cell(struct window *, struct layout_cell *,
struct layout_cell **);
+void layout_resize_layout(struct window *, struct layout_cell *,
+ enum layout_type, int, int);
+struct layout_cell *layout_search_by_border(struct layout_cell *, u_int, u_int);
void layout_set_size(struct layout_cell *, u_int, u_int, u_int,
u_int);
void layout_make_leaf(struct layout_cell *, struct window_pane *);