summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-07 10:25:15 +0000
committernicm <nicm>2019-05-07 10:25:15 +0000
commit69440d19b783c72139f22c5c72b34b55d99e71de (patch)
treeac9803539b6091f3c666c471d76c2dd8e30fbb86 /notify.c
parent45ae9a8e3520d73c795bb993ced4fe43d06ad6f1 (diff)
Do not use evbuffer_add_buffer because it is destructive and doesn't
work in newer libevent.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/notify.c b/notify.c
index 088d7596..3079f0eb 100644
--- a/notify.c
+++ b/notify.c
@@ -199,13 +199,13 @@ notify_hook(struct cmdq_item *item, const char *name)
}
void
-notify_input(struct window_pane *wp, struct evbuffer *input)
+notify_input(struct window_pane *wp, const u_char *buf, size_t len)
{
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
if (c->flags & CLIENT_CONTROL)
- control_notify_input(c, wp, input);
+ control_notify_input(c, wp, buf, len);
}
}