summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-12-28 12:10:51 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-12-28 12:10:51 +0000
commitd4633cd78b468317d5ae8956d08d59406b70302c (patch)
tree5b404b11af727ce59d5094f06d09812964a40c4d /usr.bin/tmux
parentc54f68088f51ed29f97cc1003925acbb4ea5162e (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 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/alerts.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/tmux/alerts.c b/usr.bin/tmux/alerts.c
index ad0f845dc5b..d220008ed54 100644
--- a/usr.bin/tmux/alerts.c
+++ b/usr.bin/tmux/alerts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alerts.c,v 1.28 2017/09/22 09:04:46 nicm Exp $ */
+/* $OpenBSD: alerts.c,v 1.29 2017/12/28 12:10:50 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);