diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-08-09 11:55:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-08-09 11:55:21 +0000 |
| commit | 7e1894978fda263f823abbb1e66ea251e96bfd83 (patch) | |
| tree | 1b0e94fc78160849365a1541a368b3cb8f261809 | |
| parent | osc: kitty: update 's' to the latest spec (diff) | |
slave: prefix user notifications with 'foot'
To make it clearer _who_ is emitting the warning/errors
| -rw-r--r-- | slave.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -158,6 +158,7 @@ emit_one_notification(int fd, const struct user_notification *notif) xassert(prefix != NULL); if (write(fd, prefix, strlen(prefix)) < 0 || + write(fd, "foot: ", 6) < 0 || write(fd, notif->text, strlen(notif->text)) < 0 || write(fd, postfix, strlen(postfix)) < 0) { @@ -180,7 +181,8 @@ emit_one_notification(int fd, const struct user_notification *notif) } static bool -emit_notifications_of_kind(int fd, const user_notifications_t *notifications, +emit_notifications_of_kind(int fd, + const user_notifications_t *notifications, enum user_notification_kind kind) { tll_foreach(*notifications, it) { |
