aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-25 16:35:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-25 16:45:58 +0000
commitd53f0aea7560c71c8262c7688bdf7735d5b3fa26 (patch)
tree8c5aa4489cbcd0c8ba9b64ff21f617911ef4e4ff
parentnotify: kitty notifications: fix ID string in activation event (diff)
notify: rename 'report' -> 'report_activated'
-rw-r--r--notify.c4
-rw-r--r--notify.h2
-rw-r--r--osc.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/notify.c b/notify.c
index a417311a..60b2bced 100644
--- a/notify.c
+++ b/notify.c
@@ -178,7 +178,7 @@ notif_done(struct reaper *reaper, pid_t pid, int status, void *data)
wayl_activate(term->wl, term->window, notif->xdg_token);
}
- if (notif->activated && notif->report) {
+ if (notif->activated && notif->report_activated) {
xassert(notif->id != NULL);
LOG_DBG("sending notification report to client");
@@ -231,7 +231,7 @@ notify_notify(struct terminal *term, struct notification *notif)
icon_name_or_path = notif->icon_symbolic_name;
}
- bool track_notification = notif->focus || notif->report;
+ bool track_notification = notif->focus || notif->report_activated;
LOG_DBG("notify: title=\"%s\", body=\"%s\", icon=\"%s\" (tracking: %s)",
title, body, icon_name_or_path, track_notification ? "yes" : "no");
diff --git a/notify.h b/notify.h
index 231495dc..cca70718 100644
--- a/notify.h
+++ b/notify.h
@@ -39,7 +39,7 @@ struct notification {
enum notify_when when;
enum notify_urgency urgency;
bool focus;
- bool report;
+ bool report_activated;
/*
* Used internally by notify
diff --git a/osc.c b/osc.c
index 19d9f097..42dc56ad 100644
--- a/osc.c
+++ b/osc.c
@@ -746,7 +746,7 @@ kitty_notification(struct terminal *term, char *string)
.when = when,
.urgency = urgency,
.focus = focus,
- .report = report,
+ .report_activated = report,
.stdout_fd = -1,
}));
@@ -762,7 +762,7 @@ kitty_notification(struct terminal *term, char *string)
/* Update notification metadata */
if (have_a) {
notif->focus = focus;
- notif->report = report;
+ notif->report_activated = report;
}
if (have_o)