aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorMicah Cowan <micah@micah.cowan.name>2010-05-22 21:56:04 +0000
committerMicah Cowan <micah@micah.cowan.name>2010-05-22 21:56:04 +0000
commitf11f71752a17d0ddd1005911cb01d5900a2d7780 (patch)
tree8a4b4b3396ff0bd62357047e19393e6af1313edc /window.c
parent9e7a5fa5efd7b182fe726c245b37bdbb7e745083 (diff)
downloadrtmux-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 'window.c')
-rw-r--r--window.c10
1 files changed, 5 insertions, 5 deletions
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 <nicm@users.sourceforge.net>
@@ -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);
}