diff options
author | 2020-08-19 07:15:42 +0000 | |
---|---|---|
committer | 2020-08-19 07:15:42 +0000 | |
commit | 6434f49b12406c52691e6743c0f0fd1965c58f2b (patch) | |
tree | b1ede38e1f513ff3b05e75d0fb156dafe443af52 | |
parent | Respond to colour requests if a colour is available, from Michal Goral. (diff) | |
download | wireguard-openbsd-6434f49b12406c52691e6743c0f0fd1965c58f2b.tar.xz wireguard-openbsd-6434f49b12406c52691e6743c0f0fd1965c58f2b.zip |
Set alert flag for the current window if the session is unattached.
GitHub issues 1182 and 2299. From Eric Garver.
-rw-r--r-- | usr.bin/tmux/alerts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/alerts.c b/usr.bin/tmux/alerts.c index dc3240b1468..71fb3b88cea 100644 --- a/usr.bin/tmux/alerts.c +++ b/usr.bin/tmux/alerts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alerts.c,v 1.31 2020/07/27 08:03:10 nicm Exp $ */ +/* $OpenBSD: alerts.c,v 1.32 2020/08/19 07:15:42 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); } |