diff options
| author | 2018-12-18 13:20:44 +0000 | |
|---|---|---|
| committer | 2018-12-18 13:20:44 +0000 | |
| commit | bf52409ee856a3e0177d8fcdda2f593bb97f876a (patch) | |
| tree | 0cfa98ce0c4e5ce5754adf746ba2079c83af470f /usr.bin/tmux/window-tree.c | |
| parent | Fix the IPL of pfkeyv2_mtx to prevent a deadlock. The system can use (diff) | |
| download | wireguard-openbsd-bf52409ee856a3e0177d8fcdda2f593bb97f876a.tar.xz wireguard-openbsd-bf52409ee856a3e0177d8fcdda2f593bb97f876a.zip | |
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; |
