aboutsummaryrefslogtreecommitdiff
path: root/alerts.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-08-19 10:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-08-19 10:01:19 +0100
commit5a55d1390ace032ad51d5fdd9f71feb47638671d (patch)
tree8511bfd56c4206a1228bfcda2dfd08e0aee3d4ac /alerts.c
parent93eb2c8c535c71765f39bb71865acca989a35132 (diff)
parentd8b6560cbfb5677223982e4b27be92b2fcd034df (diff)
downloadrtmux-5a55d1390ace032ad51d5fdd9f71feb47638671d.tar.gz
rtmux-5a55d1390ace032ad51d5fdd9f71feb47638671d.tar.bz2
rtmux-5a55d1390ace032ad51d5fdd9f71feb47638671d.zip
Merge branch 'obsd-master'
Diffstat (limited to 'alerts.c')
-rw-r--r--alerts.c6
1 files changed, 3 insertions, 3 deletions
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);
}