summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-01-28 08:06:11 +0000
committernicm <nicm@openbsd.org>2020-01-28 08:06:11 +0000
commitb5f8268c723931d29cccf07f97f6669e78ee6f75 (patch)
treeb2547789539054cfcb48b14e6994fb86bca34f30 /usr.bin/tmux/server-client.c
parentchanges to support FIDO attestation (diff)
downloadwireguard-openbsd-b5f8268c723931d29cccf07f97f6669e78ee6f75.tar.xz
wireguard-openbsd-b5f8268c723931d29cccf07f97f6669e78ee6f75.zip
Add a define for flags meaning a client is not attached, and fix
unattached counter, reported by Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 6a7d1d3fee0..80a4455413e 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.302 2019/12/16 16:39:03 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.303 2020/01/28 08:06:11 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1034,7 +1034,7 @@ server_client_key_callback(struct cmdq_item *item, void *data)
key_code key0;
/* Check the client is good to accept input. */
- if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0)
+ if (s == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
goto out;
wl = s->curw;
@@ -1221,7 +1221,7 @@ server_client_handle_key(struct client *c, struct key_event *event)
struct cmdq_item *item;
/* Check the client is good to accept input. */
- if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0)
+ if (s == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
return (0);
/*