From c5bb1fb2ed33c06078bfec5fb2f487f6406254d0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 5 Sep 2024 07:13:53 +0200 Subject: notifications: BEL and OSC-777 now focuses the window on notification activation Or put more propertly; if the notification daemon, and the notification helper used by foot has been configured properly (i.e. they both support XDG activation tokens), notifications generated by BEL and OSC-777 will now raise/focus the window when the default action of the notification is activated - typically by clicking the notification. Closes #1822 --- terminal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index ecf21040..7e490418 100644 --- a/terminal.c +++ b/terminal.c @@ -3597,9 +3597,10 @@ term_bell(struct terminal *term) if (term->conf->bell.notify) { notify_notify(term, &(struct notification){ - .title = (char *)"Bell", - .body = (char *)"Bell in terminal", + .title = xstrdup("Bell"), + .body = xstrdup("Bell in terminal"), .expire_time = -1, + .focus = true, }); } -- cgit v1.3