aboutsummaryrefslogtreecommitdiff
path: root/alerts.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-08-16 14:01:15 +0100
committerThomas Adam <thomas@xteddy.org>2017-08-16 14:01:15 +0100
commit2103a09430142725ea933dcf434c79460ab419f1 (patch)
treea5ee1d7b8a303078b713a891edc0a177082522bb /alerts.c
parent0824850bbce86c395230700cb10c81f162319858 (diff)
parentc6a8ad23a14034ee956bcb45748f743ef5d0c1fc (diff)
downloadrtmux-2103a09430142725ea933dcf434c79460ab419f1.tar.gz
rtmux-2103a09430142725ea933dcf434c79460ab419f1.tar.bz2
rtmux-2103a09430142725ea933dcf434c79460ab419f1.zip
Merge branch 'obsd-master'
Diffstat (limited to 'alerts.c')
-rw-r--r--alerts.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/alerts.c b/alerts.c
index 790ce38e..9c9bdf3b 100644
--- a/alerts.c
+++ b/alerts.c
@@ -267,11 +267,11 @@ alerts_set_message(struct session *s, struct window *w, struct winlink *wl,
int flag;
/*
- * We have found an alert (bell, activity or silence), so we need
- * to notify the user. For each client attached to this session,
+ * We have found an alert (bell, activity or silence), so we need to
+ * pass it on to the user. For each client attached to this session,
* decide whether a bell (or visual message) is needed.
*
- * {bell,activity,silence}-action determines when we notify: none means
+ * {bell,activity,silence}-action determines when we alert: none means
* nothing happens, current means we only do something for the current
* window and other means only for windows other than the current.
*
@@ -280,17 +280,17 @@ alerts_set_message(struct session *s, struct window *w, struct winlink *wl,
* mean both a bell and visual message is sent.
*/
- if (action == BELL_NONE)
+ if (action == ALERT_NONE)
return;
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != s || c->flags & CLIENT_CONTROL)
continue;
flag = 0;
- if (action == BELL_ANY)
+ if (action == ALERT_ANY)
flag = 1;
- else if (action == BELL_CURRENT)
+ else if (action == ALERT_CURRENT)
flag = (c->session->curw->window == w);
- else if (action == BELL_OTHER)
+ else if (action == ALERT_OTHER)
flag = (c->session->curw->window != w);
if (!flag)
continue;