aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-12-28 14:01:14 +0000
committerThomas Adam <thomas@xteddy.org>2017-12-28 14:01:14 +0000
commitad417f6eb7abbcc01b0a3c7a2f15a833d9cd998f (patch)
tree0dd2de92e8fe7708feba1e0fcb1f94cc50ffc515
parentcd46568ebe8b86bbaa6667132a8ea826ad3a7d3a (diff)
parent299c552e33c3bb929a522dd166bee29c4617885f (diff)
downloadrtmux-ad417f6eb7abbcc01b0a3c7a2f15a833d9cd998f.tar.gz
rtmux-ad417f6eb7abbcc01b0a3c7a2f15a833d9cd998f.tar.bz2
rtmux-ad417f6eb7abbcc01b0a3c7a2f15a833d9cd998f.zip
Merge branch 'obsd-master'
-rw-r--r--alerts.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/alerts.c b/alerts.c
index d90d0eb8..6fe88a09 100644
--- a/alerts.c
+++ b/alerts.c
@@ -200,8 +200,10 @@ alerts_check_bell(struct window *w)
* not check WINLINK_BELL).
*/
s = wl->session;
- if (s->curw != wl)
+ if (s->curw != wl) {
wl->flags |= WINLINK_BELL;
+ server_status_session(s);
+ }
if (!alerts_action_applies(wl, "bell-action"))
continue;
notify_winlink("alert-bell", wl);
@@ -234,8 +236,10 @@ alerts_check_activity(struct window *w)
if (wl->flags & WINLINK_ACTIVITY)
continue;
s = wl->session;
- if (s->curw != wl)
+ if (s->curw != wl) {
wl->flags |= WINLINK_ACTIVITY;
+ server_status_session(s);
+ }
if (!alerts_action_applies(wl, "activity-action"))
continue;
notify_winlink("alert-activity", wl);
@@ -268,8 +272,10 @@ alerts_check_silence(struct window *w)
if (wl->flags & WINLINK_SILENCE)
continue;
s = wl->session;
- if (s->curw != wl)
+ if (s->curw != wl) {
wl->flags |= WINLINK_SILENCE;
+ server_status_session(s);
+ }
if (!alerts_action_applies(wl, "silence-action"))
continue;
notify_winlink("alert-silence", wl);