diff options
author | nicm <nicm> | 2022-08-15 09:10:34 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-08-15 09:10:34 +0000 |
commit | 7c2dcd72380dc2d9e119e99cb423a67ae17b6bd2 (patch) | |
tree | 6407cc86249a7cda28c9d440e5e99e247fde866c /control-notify.c | |
parent | 03149bf7f62e2c92d0e60087c52604d2dd51794f (diff) |
Notify when a paste buffer is deleted, GitHub issue 3302 from George
Nachman.
Diffstat (limited to 'control-notify.c')
-rw-r--r-- | control-notify.c | 13 |
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); + } +} |