summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2020-01-28 08:06:11 +0000
committernicm <nicm>2020-01-28 08:06:11 +0000
commit24350879cdfb9ef23dee0da409b621e9830d8baf (patch)
tree827c222380b51867c7a13102840377853f364b0a /server-client.c
parent2c38e01b548553aa162f9f126147b5ed64fd1700 (diff)
Add a define for flags meaning a client is not attached, and fix
unattached counter, reported by Thomas Sattler.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-client.c b/server-client.c
index ee7b4c70..12e07327 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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);
/*