Add paste-buffer-deleted notification and fix name of paste-buffer-changed.

This commit is contained in:
nicm
2022-10-28 13:00:02 +00:00
parent c2580cfe24
commit 8edece2cdb
6 changed files with 36 additions and 21 deletions

View File

@ -244,6 +244,19 @@ control_notify_paste_buffer_changed(const char *name)
if (!CONTROL_SHOULD_NOTIFY_CLIENT(c))
continue;
control_write(c, "%%paste-changed %s", name);
control_write(c, "%%paste-buffer-changed %s", name);
}
}
void
control_notify_paste_buffer_deleted(const char *name)
{
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
if (!CONTROL_SHOULD_NOTIFY_CLIENT(c))
continue;
control_write(c, "%%paste-buffer-deleted %s", name);
}
}