summaryrefslogtreecommitdiffstats
path: root/control-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/control-notify.c b/control-notify.c
index 6ff0e436..a252dd05 100644
--- a/control-notify.c
+++ b/control-notify.c
@@ -234,3 +234,16 @@ control_notify_session_window_changed(struct session *s)
s->curw->window->id);
}
}
+
+void
+control_notify_paste_buffer_changed(const char *name)
+{
+ struct client *c;
+
+ TAILQ_FOREACH(c, &clients, entry) {
+ if (!CONTROL_SHOULD_NOTIFY_CLIENT(c))
+ continue;
+
+ control_write(c, "%%paste-changed %s", name);
+ }
+}