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-clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'window-clock.c') diff --git a/window-clock.c b/window-clock.c index 368dd327..27e96132 100644 --- a/window-clock.c +++ b/window-clock.c @@ -1,4 +1,4 @@ -/* $Id: window-clock.c,v 1.11 2009-12-04 22:14:47 tcunha Exp $ */ +/* $Id: window-clock.c,v 1.12 2010-05-22 21:56:04 micahcowan Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -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); } -- cgit