mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
osc: kitty notifications: use body as title, if no title is set
This mirrors kitty's behavior; if the user didn't set a title, but did set the body/text, use the body as title instead.
This commit is contained in:
parent
b0bf8ca5f7
commit
57af75f988
1 changed files with 2 additions and 2 deletions
4
osc.c
4
osc.c
|
|
@ -790,8 +790,8 @@ kitty_notification(struct terminal *term, char *string)
|
|||
if (done) {
|
||||
notify_notify(
|
||||
term,
|
||||
notif->title != NULL ? notif->title : "",
|
||||
notif->body != NULL ? notif->body : "",
|
||||
notif->title != NULL ? notif->title : notif->body,
|
||||
notif->title != NULL && notif->body != NULL ? notif->body : "",
|
||||
notif->when, notif->urgency);
|
||||
|
||||
tll_foreach(term->kitty_notifications, it) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue