From f11f71752a17d0ddd1005911cb01d5900a2d7780 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Sat, 22 May 2010 21:56:04 +0000 Subject: 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. --- window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 68f30f78..9e6a3500 100644 --- a/window.c +++ b/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.131 2010-05-14 14:30:01 tcunha Exp $ */ +/* $Id: window.c,v 1.132 2010-05-22 21:56:04 micahcowan Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -728,7 +728,7 @@ window_pane_reset_mode(struct window_pane *wp) } void -window_pane_key(struct window_pane *wp, struct client *c, int key) +window_pane_key(struct window_pane *wp, struct session *sess, int key) { struct window_pane *wp2; @@ -737,7 +737,7 @@ window_pane_key(struct window_pane *wp, struct client *c, int key) if (wp->mode != NULL) { if (wp->mode->key != NULL) - wp->mode->key(wp, c, key); + wp->mode->key(wp, sess, key); return; } @@ -756,7 +756,7 @@ window_pane_key(struct window_pane *wp, struct client *c, int key) void window_pane_mouse( - struct window_pane *wp, struct client *c, struct mouse_event *m) + struct window_pane *wp, struct session *sess, struct mouse_event *m) { if (!window_pane_visible(wp)) return; @@ -770,7 +770,7 @@ window_pane_mouse( if (wp->mode != NULL) { if (wp->mode->mouse != NULL) - wp->mode->mouse(wp, c, m); + wp->mode->mouse(wp, sess, m); } else if (wp->fd != -1) input_mouse(wp, m); } -- cgit