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 /window-clock.c | |
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 'window-clock.c')
-rw-r--r-- | window-clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/window-clock.c b/window-clock.c index bc9cf81d..64980df0 100644 --- a/window-clock.c +++ b/window-clock.c @@ -26,7 +26,7 @@ struct screen *window_clock_init(struct window_pane *); void window_clock_free(struct window_pane *); void window_clock_resize(struct window_pane *, u_int, u_int); -void window_clock_key(struct window_pane *, struct client *, int); +void window_clock_key(struct window_pane *, struct session *, int); void window_clock_timer(struct window_pane *); void window_clock_draw_screen(struct window_pane *); @@ -85,7 +85,7 @@ window_clock_resize(struct window_pane *wp, u_int sx, u_int sy) /* ARGSUSED */ void window_clock_key( - struct window_pane *wp, unused struct client *c, unused int key) + struct window_pane *wp, unused struct session *sess, unused int key) { window_pane_reset_mode(wp); } |