summaryrefslogtreecommitdiffstats
path: root/server-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-21 18:47:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-21 18:47:01 +0000
commitc5504af4a685707389888db475fb7451ff5d8d86 (patch)
tree56bc280603d7a101480048c32977f79adb5697e7 /server-window.c
parent49ac5b5fe0aa9bf41b9193790eecf7c3736ed4de (diff)
Add various checks to turn off bits that can't work in control mode
(such as lock).
Diffstat (limited to 'server-window.c')
-rw-r--r--server-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-window.c b/server-window.c
index 8b34fc6c..e82f0e36 100644
--- a/server-window.c
+++ b/server-window.c
@@ -85,7 +85,7 @@ server_window_check_bell(struct session *s, struct winlink *wl)
return (0);
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
- if (c == NULL || c->session != s)
+ if (c == NULL || c->session != s || (c->flags & CLIENT_CONTROL))
continue;
if (!visual) {
tty_bell(&c->tty);
@@ -242,7 +242,7 @@ ring_bell(struct session *s)
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
- if (c != NULL && c->session == s)
+ if (c != NULL && c->session == s && !(c->flags & CLIENT_CONTROL))
tty_bell(&c->tty);
}
}