diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-05-08 20:34:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-05-08 20:34:12 +0000 |
commit | f3741f0653e2a38b9d52851fb187d2592612a7c1 (patch) | |
tree | bcf3ac5cb5f3065ac0c895e6452143c823fde48b /tmux.h | |
parent | 295ace682020769be8a6a6a02835099d93c392ef (diff) | |
download | rtmux-f3741f0653e2a38b9d52851fb187d2592612a7c1.tar.gz rtmux-f3741f0653e2a38b9d52851fb187d2592612a7c1.tar.bz2 rtmux-f3741f0653e2a38b9d52851fb187d2592612a7c1.zip |
Add a new option, mouse-resize-pane. When on, panes may be resized by
dragging their borders. From hsim at gmx.li.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1086,6 +1086,7 @@ struct mouse_event { #define MOUSE_BUTTON 3 #define MOUSE_DRAG 32 #define MOUSE_45 64 +#define MOUSE_RESIZE_PANE 128 /* marker for resizing */ u_int x; u_int y; }; @@ -1177,6 +1178,8 @@ struct client { struct session *session; struct session *last_session; + struct mouse_event last_mouse; + int references; }; ARRAY_DECL(clients, struct client *); @@ -1925,6 +1928,8 @@ void layout_free(struct window *); void layout_resize(struct window *, u_int, u_int); void layout_resize_pane( struct window_pane *, enum layout_type, int); +void layout_resize_pane_mouse( + struct client *c, struct mouse_event *mouse); void layout_assign_pane(struct layout_cell *, struct window_pane *); struct layout_cell *layout_split_pane( struct window_pane *, enum layout_type, int); |