mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
notify: don’t emit notification when we’re focused
This commit is contained in:
parent
03cbb6ad90
commit
1d8410b7ae
1 changed files with 5 additions and 0 deletions
5
notify.c
5
notify.c
|
|
@ -19,6 +19,11 @@ notify_notify(const struct terminal *term, const char *title, const char *body)
|
|||
{
|
||||
LOG_DBG("notify: title=\"%s\", msg=\"%s\"", title, msg);
|
||||
|
||||
if (term->kbd_focus) {
|
||||
/* No notifications while we’re focused */
|
||||
return;
|
||||
}
|
||||
|
||||
if (title == NULL || body == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue