diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-05-18 20:30:14 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-05-18 20:30:14 +0000 |
commit | 4efd45628d28e41a1d84091b4b6091484586ca28 (patch) | |
tree | 4b2bb97c5f9a940ac7bda656164163c559f7dc93 /tmux.h | |
parent | 4fcbf4b872bb2b30a34edaf7e0b95a01c17a8aa7 (diff) | |
download | rtmux-4efd45628d28e41a1d84091b4b6091484586ca28.tar.gz rtmux-4efd45628d28e41a1d84091b4b6091484586ca28.tar.bz2 rtmux-4efd45628d28e41a1d84091b4b6091484586ca28.zip |
Sync OpenBSD patchset 905:
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 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.622 2011-05-18 20:28:41 tcunha Exp $ */ +/* $Id: tmux.h,v 1.623 2011-05-18 20:30:14 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1082,6 +1082,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; }; @@ -1173,6 +1174,8 @@ struct client { struct session *session; struct session *last_session; + struct mouse_event last_mouse; + int references; }; ARRAY_DECL(clients, struct client *); @@ -1921,6 +1924,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); |