Notify when a paste buffer is deleted, GitHub issue 3302 from George

Nachman.
This commit is contained in:
nicm
2022-08-15 09:10:34 +00:00
parent 03149bf7f6
commit 7c2dcd7238
5 changed files with 52 additions and 7 deletions

View File

@ -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);
}
}