mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-26 01:40:12 -05:00
parent
813b514f63
commit
689549bb1f
2 changed files with 7 additions and 2 deletions
3
notify.c
3
notify.c
|
|
@ -473,7 +473,8 @@ notify_notify(struct terminal *term, struct notification *notif)
|
||||||
"urgency", "muted", "sound-name", "expire-time", "replace-id",
|
"urgency", "muted", "sound-name", "expire-time", "replace-id",
|
||||||
"action-argument"},
|
"action-argument"},
|
||||||
(const char *[]){
|
(const char *[]){
|
||||||
app_id, term->window_title, icon_name_or_path, title, body,
|
app_id, term->window_title, icon_name_or_path, title,
|
||||||
|
body != NULL ? body : "",
|
||||||
notif->category != NULL ? notif->category : "", urgency_str,
|
notif->category != NULL ? notif->category : "", urgency_str,
|
||||||
notif->muted ? "true" : "false",
|
notif->muted ? "true" : "false",
|
||||||
notif->sound_name != NULL ? notif->sound_name : "",
|
notif->sound_name != NULL ? notif->sound_name : "",
|
||||||
|
|
|
||||||
6
osc.c
6
osc.c
|
|
@ -557,9 +557,13 @@ osc_notify(struct terminal *term, char *string)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *msgdup = NULL;
|
||||||
|
if (msg != NULL)
|
||||||
|
msgdup = xstrdup(msg);
|
||||||
|
|
||||||
notify_notify(term, &(struct notification){
|
notify_notify(term, &(struct notification){
|
||||||
.title = xstrdup(title),
|
.title = xstrdup(title),
|
||||||
.body = xstrdup(msg),
|
.body = msgdup,
|
||||||
.expire_time = -1,
|
.expire_time = -1,
|
||||||
.focus = true,
|
.focus = true,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue