diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-05-23 19:42:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-05-23 19:42:19 +0000 |
commit | 4f5c5b37b866967be189901bc140ca6b8c25c5e3 (patch) | |
tree | ea5b685be2f69f30fc18872caefc0024e2574c7a /tmux.h | |
parent | 0ed727a0128dd84ae727a337208a31df8f3cff02 (diff) | |
download | rtmux-4f5c5b37b866967be189901bc140ca6b8c25c5e3.tar.gz rtmux-4f5c5b37b866967be189901bc140ca6b8c25c5e3.tar.bz2 rtmux-4f5c5b37b866967be189901bc140ca6b8c25c5e3.zip |
Pass in the session, rather than the client, to window modes' key()
function. We were only ever using the client to find the session anyway.
This allows send-key to work properly for manipulating copy mode from
outside tmux.
From Micah Cowan.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -760,16 +760,16 @@ struct input_ctx { * Window mode. Windows can be in several modes and this is used to call the * right function to handle input and output. */ -struct client; +struct session; struct window; struct mouse_event; struct window_mode { struct screen *(*init)(struct window_pane *); void (*free)(struct window_pane *); void (*resize)(struct window_pane *, u_int, u_int); - void (*key)(struct window_pane *, struct client *, int); + void (*key)(struct window_pane *, struct session *, int); void (*mouse)(struct window_pane *, - struct client *, struct mouse_event *); + struct session *, struct mouse_event *); void (*timer)(struct window_pane *); }; @@ -1828,9 +1828,9 @@ void window_pane_alternate_off( int window_pane_set_mode( struct window_pane *, const struct window_mode *); void window_pane_reset_mode(struct window_pane *); -void window_pane_key(struct window_pane *, struct client *, int); +void window_pane_key(struct window_pane *, struct session *, int); void window_pane_mouse(struct window_pane *, - struct client *, struct mouse_event *); + struct session *, struct mouse_event *); int window_pane_visible(struct window_pane *); char *window_pane_search( struct window_pane *, const char *, u_int *); |