aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--notify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/notify.c b/notify.c
index 293344ec..6f294458 100644
--- a/notify.c
+++ b/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;