From 40e65c511502fe47932e230290537e7391ab8a83 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 27 Jul 2020 08:03:10 +0000 Subject: Add a -d option to display-message to set delay, from theonekeyg at gmail dot com in GitHub issue 2322. --- alerts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alerts.c') diff --git a/alerts.c b/alerts.c index 9675934a..38e88801 100644 --- a/alerts.c +++ b/alerts.c @@ -316,9 +316,9 @@ alerts_set_message(struct winlink *wl, const char *type, const char *option) if (visual == VISUAL_OFF) continue; if (c->session->curw == wl) - status_message_set(c, 1, "%s in current window", type); + status_message_set(c, -1, 1, "%s in current window", type); else { - status_message_set(c, 1, "%s in window %d", type, + status_message_set(c, -1, 1, "%s in window %d", type, wl->idx); } } -- cgit From d8b6560cbfb5677223982e4b27be92b2fcd034df Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 19 Aug 2020 07:15:42 +0000 Subject: Set alert flag for the current window if the session is unattached. GitHub issues 1182 and 2299. From Eric Garver. --- alerts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alerts.c') diff --git a/alerts.c b/alerts.c index 38e88801..0f2eb179 100644 --- a/alerts.c +++ b/alerts.c @@ -200,7 +200,7 @@ alerts_check_bell(struct window *w) * not check WINLINK_BELL). */ s = wl->session; - if (s->curw != wl) { + if (s->curw != wl || s->attached == 0) { wl->flags |= WINLINK_BELL; server_status_session(s); } @@ -236,7 +236,7 @@ alerts_check_activity(struct window *w) if (wl->flags & WINLINK_ACTIVITY) continue; s = wl->session; - if (s->curw != wl) { + if (s->curw != wl || s->attached == 0) { wl->flags |= WINLINK_ACTIVITY; server_status_session(s); } @@ -272,7 +272,7 @@ alerts_check_silence(struct window *w) if (wl->flags & WINLINK_SILENCE) continue; s = wl->session; - if (s->curw != wl) { + if (s->curw != wl || s->attached == 0) { wl->flags |= WINLINK_SILENCE; server_status_session(s); } -- cgit