aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-26 14:23:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-26 14:28:47 +0000
commit9cf99ea4bffd667ae59e4328a28b86dcefacb3f4 (patch)
tree9eb8163e758c990b0cfb76c532ee11f63bd08c2d /osc.c
parentpgo: add notify_close() stub (diff)
notify: close notification by sending SIGINT to helper
If the user hasn't configured a custom 'desktop-notifications.close' command, try to close the notification by sending SIGINT to the notification helper. This is best-effort: * If there's no helper running, we do nothing (except warn) * We don't verify, in any way, the notification is actually closed * We don't send any other signals, under any circumstances. That is, no SIGTERM, no SIGKILL. Ever.
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osc.c b/osc.c
index 2eaed869..34080467 100644
--- a/osc.c
+++ b/osc.c
@@ -759,6 +759,7 @@ kitty_notification(struct terminal *term, char *string)
.when = when,
.urgency = urgency,
.focus = focus,
+ .may_be_programatically_closed = true,
.report_activated = report_activated,
.report_closed = report_closed,
.stdout_fd = -1,