From 57af75f98877220a2e8827bb3cb32c780df25d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 19 Jul 2024 15:26:08 +0200 Subject: [PATCH] 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. --- osc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc.c b/osc.c index a9a83df9..7485cada 100644 --- a/osc.c +++ b/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) {