summaryrefslogtreecommitdiffstats
path: root/alerts.c
diff options
context:
space:
mode:
authornicm <nicm>2017-12-28 12:10:50 +0000
committernicm <nicm>2017-12-28 12:10:50 +0000
commit299c552e33c3bb929a522dd166bee29c4617885f (patch)
tree3cb504ebb535cd0606c54c144a3349494fb3a6de /alerts.c
parent937f8ed095ea89b2ecbe7bf4e2922afc8afbf3eb (diff)
Redrawing status is needed after changing window flags or title does not
update if status line is off, GitHub issue 1191.
Diffstat (limited to 'alerts.c')
-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);