mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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
This commit is contained in:
parent
c15ebbfa2e
commit
c5bb1fb2ed
3 changed files with 14 additions and 4 deletions
5
osc.c
5
osc.c
|
|
@ -558,9 +558,10 @@ osc_notify(struct terminal *term, char *string)
|
|||
}
|
||||
|
||||
notify_notify(term, &(struct notification){
|
||||
.title = (char *)title,
|
||||
.body = (char *)msg,
|
||||
.title = xstrdup(title),
|
||||
.body = xstrdup(msg),
|
||||
.expire_time = -1,
|
||||
.focus = true,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue