diff options
author | Micah Cowan <micah@micah.cowan.name> | 2010-05-22 21:56:04 +0000 |
---|---|---|
committer | Micah Cowan <micah@micah.cowan.name> | 2010-05-22 21:56:04 +0000 |
commit | f11f71752a17d0ddd1005911cb01d5900a2d7780 (patch) | |
tree | 8a4b4b3396ff0bd62357047e19393e6af1313edc /tmux.h | |
parent | 9e7a5fa5efd7b182fe726c245b37bdbb7e745083 (diff) | |
download | rtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.tar.gz rtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.tar.bz2 rtmux-f11f71752a17d0ddd1005911cb01d5900a2d7780.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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.557 2010-05-14 14:33:39 tcunha Exp $ */ +/* $Id: tmux.h,v 1.558 2010-05-22 21:56:04 micahcowan Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -759,16 +759,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 *); }; @@ -1827,9 +1827,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 *); |