From f6bad7efd76109de122bb3b670d0e18f86ec38bb Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 8 Jun 2018 20:54:22 +0000 Subject: 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. --- tmux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmux.h') 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 *); -- cgit