diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-12-18 13:20:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-12-18 13:20:45 +0000 |
commit | 50c8b42191aaac565e6da9ddaaaaf524d766ad9b (patch) | |
tree | 3098d1b1b6e409e063f0b5dc0072e5c5be681562 /usr.bin/tmux/window-tree.c | |
parent | 7a8c12dd787a002a9cd87040fff61bfd72a57366 (diff) |
Pass window into mode functions.
Diffstat (limited to 'usr.bin/tmux/window-tree.c')
-rw-r--r-- | usr.bin/tmux/window-tree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/window-tree.c b/usr.bin/tmux/window-tree.c index c1c0a715b3a..bfde4e68371 100644 --- a/usr.bin/tmux/window-tree.c +++ b/usr.bin/tmux/window-tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-tree.c,v 1.31 2018/08/19 19:03:46 nicm Exp $ */ +/* $OpenBSD: window-tree.c,v 1.32 2018/12/18 13:20:44 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -29,8 +29,8 @@ static struct screen *window_tree_init(struct window_pane *, static void window_tree_free(struct window_pane *); static void window_tree_resize(struct window_pane *, u_int, u_int); static void window_tree_key(struct window_pane *, - struct client *, struct session *, key_code, - struct mouse_event *); + struct client *, struct session *, + struct winlink *, key_code, struct mouse_event *); #define WINDOW_TREE_DEFAULT_COMMAND "switch-client -t '%%'" @@ -1120,7 +1120,8 @@ window_tree_mouse(struct window_tree_modedata *data, key_code key, u_int x, static void window_tree_key(struct window_pane *wp, struct client *c, - __unused struct session *s, key_code key, struct mouse_event *m) + __unused struct session *s, __unused struct winlink *wl, key_code key, + struct mouse_event *m) { struct window_tree_modedata *data = wp->modedata; struct window_tree_itemdata *item, *new_item; |