diff options
author | nicm <nicm> | 2017-08-17 08:37:38 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-08-17 08:37:38 +0000 |
commit | 8daa1d5f547b3933c30fc45d2a80da5016b7dbca (patch) | |
tree | f4f1782b8385cc6cd2c30d5ce8e87a5dcb6a3b7d /alerts.c | |
parent | c6a8ad23a14034ee956bcb45748f743ef5d0c1fc (diff) | |
download | rtmux-8daa1d5f547b3933c30fc45d2a80da5016b7dbca.tar.gz rtmux-8daa1d5f547b3933c30fc45d2a80da5016b7dbca.tar.bz2 rtmux-8daa1d5f547b3933c30fc45d2a80da5016b7dbca.zip |
Add monitor-bell window option to match the activity and silence
options, from Brad Town.
Diffstat (limited to 'alerts.c')
-rw-r--r-- | alerts.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -90,8 +90,10 @@ alerts_check_session(struct session *s) static int alerts_enabled(struct window *w, int flags) { - if (flags & WINDOW_BELL) - return (1); + if (flags & WINDOW_BELL) { + if (options_get_number(w->options, "monitor-bell")) + return (1); + } if (flags & WINDOW_ACTIVITY) { if (options_get_number(w->options, "monitor-activity")) return (1); @@ -164,6 +166,8 @@ alerts_check_bell(struct window *w) if (~w->flags & WINDOW_BELL) return (0); + if (!options_get_number(w->options, "monitor-bell")) + return (0); TAILQ_FOREACH(wl, &w->winlinks, wentry) wl->session->flags &= ~SESSION_ALERTED; |