mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04: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) {
|
if (done) {
|
||||||
notify_notify(
|
notify_notify(
|
||||||
term,
|
term,
|
||||||
notif->title != NULL ? notif->title : "",
|
notif->title != NULL ? notif->title : notif->body,
|
||||||
notif->body != NULL ? notif->body : "",
|
notif->title != NULL && notif->body != NULL ? notif->body : "",
|
||||||
notif->when, notif->urgency);
|
notif->when, notif->urgency);
|
||||||
|
|
||||||
tll_foreach(term->kitty_notifications, it) {
|
tll_foreach(term->kitty_notifications, it) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue