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 /server-client.c | |
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 'server-client.c')
-rw-r--r-- | server-client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server-client.c b/server-client.c index 9d49e0f6..df72a818 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $Id: server-client.c,v 1.31 2010-02-08 18:27:34 tcunha Exp $ */ +/* $Id: server-client.c,v 1.32 2010-05-22 21:56:04 micahcowan Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -299,7 +299,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) server_redraw_window_borders(w); wp = w->active; } - window_pane_mouse(wp, c, mouse); + window_pane_mouse(wp, c->session, mouse); return; } @@ -321,7 +321,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) /* Try as a non-prefix key binding. */ if ((bd = key_bindings_lookup(key)) == NULL) { if (!(c->flags & CLIENT_READONLY)) - window_pane_key(wp, c, key); + window_pane_key(wp, c->session, key); } else key_bindings_dispatch(bd, c); } @@ -337,7 +337,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) if (isprefix) c->flags |= CLIENT_PREFIX; else if (!(c->flags & CLIENT_READONLY)) - window_pane_key(wp, c, key); + window_pane_key(wp, c->session, key); } return; } @@ -348,7 +348,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) if (isprefix) c->flags |= CLIENT_PREFIX; else if (!(c->flags & CLIENT_READONLY)) - window_pane_key(wp, c, key); + window_pane_key(wp, c->session, key); return; } |