notify: rename 'report' -> 'report_activated'

This commit is contained in:
Daniel Eklöf 2024-07-25 18:35:15 +02:00
parent 0ce4ef6000
commit d53f0aea75
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 5 additions and 5 deletions

View file

@ -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); wayl_activate(term->wl, term->window, notif->xdg_token);
} }
if (notif->activated && notif->report) { if (notif->activated && notif->report_activated) {
xassert(notif->id != NULL); xassert(notif->id != NULL);
LOG_DBG("sending notification report to client"); 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; 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)", LOG_DBG("notify: title=\"%s\", body=\"%s\", icon=\"%s\" (tracking: %s)",
title, body, icon_name_or_path, track_notification ? "yes" : "no"); title, body, icon_name_or_path, track_notification ? "yes" : "no");

View file

@ -39,7 +39,7 @@ struct notification {
enum notify_when when; enum notify_when when;
enum notify_urgency urgency; enum notify_urgency urgency;
bool focus; bool focus;
bool report; bool report_activated;
/* /*
* Used internally by notify * Used internally by notify

4
osc.c
View file

@ -746,7 +746,7 @@ kitty_notification(struct terminal *term, char *string)
.when = when, .when = when,
.urgency = urgency, .urgency = urgency,
.focus = focus, .focus = focus,
.report = report, .report_activated = report,
.stdout_fd = -1, .stdout_fd = -1,
})); }));
@ -762,7 +762,7 @@ kitty_notification(struct terminal *term, char *string)
/* Update notification metadata */ /* Update notification metadata */
if (have_a) { if (have_a) {
notif->focus = focus; notif->focus = focus;
notif->report = report; notif->report_activated = report;
} }
if (have_o) if (have_o)