summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-12-18 13:20:44 +0000
committernicm <nicm@openbsd.org>2018-12-18 13:20:44 +0000
commitbf52409ee856a3e0177d8fcdda2f593bb97f876a (patch)
tree0cfa98ce0c4e5ce5754adf746ba2079c83af470f /usr.bin/tmux/window-client.c
parentFix the IPL of pfkeyv2_mtx to prevent a deadlock. The system can use (diff)
downloadwireguard-openbsd-bf52409ee856a3e0177d8fcdda2f593bb97f876a.tar.xz
wireguard-openbsd-bf52409ee856a3e0177d8fcdda2f593bb97f876a.zip
Pass window into mode functions.
Diffstat (limited to 'usr.bin/tmux/window-client.c')
-rw-r--r--usr.bin/tmux/window-client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/window-client.c b/usr.bin/tmux/window-client.c
index b586f4d4023..1a637dc522d 100644
--- a/usr.bin/tmux/window-client.c
+++ b/usr.bin/tmux/window-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-client.c,v 1.14 2018/02/28 08:55:44 nicm Exp $ */
+/* $OpenBSD: window-client.c,v 1.15 2018/12/18 13:20:44 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -31,8 +31,8 @@ static void window_client_free(struct window_pane *);
static void window_client_resize(struct window_pane *, u_int,
u_int);
static void window_client_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_CLIENT_DEFAULT_COMMAND "detach-client -t '%%'"
@@ -312,7 +312,8 @@ window_client_do_detach(void* modedata, void *itemdata,
static void
window_client_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_client_modedata *data = wp->modedata;
struct mode_tree_data *mtd = data->data;