summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-06-08 20:54:22 +0000
committernicm <nicm@openbsd.org>2018-06-08 20:54:22 +0000
commit3d1607c580d305e91bda468644b369fca819e2b5 (patch)
tree5a4b77c8dc79187d70f3807a0d3b2104cece9662 /usr.bin/tmux/tmux.h
parentBail out if fchmod(2) fails. (diff)
downloadwireguard-openbsd-3d1607c580d305e91bda468644b369fca819e2b5.tar.xz
wireguard-openbsd-3d1607c580d305e91bda468644b369fca819e2b5.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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 180cf10e332..82971931723 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.825 2018/05/24 09:42:49 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.826 2018/06/08 20:54:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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 *);