summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server-client.c2
-rw-r--r--tmux.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/server-client.c b/server-client.c
index dc5074e7..7cea32c0 100644
--- a/server-client.c
+++ b/server-client.c
@@ -516,7 +516,7 @@ server_client_detach(struct client *c, enum msgtype msgtype)
{
struct session *s = c->session;
- if (s == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
+ if (s == NULL || (c->flags & CLIENT_NODETACHFLAGS))
return;
c->flags |= CLIENT_EXIT;
diff --git a/tmux.h b/tmux.h
index 0d3c923f..59e1687d 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1710,6 +1710,9 @@ struct client {
(CLIENT_DEAD| \
CLIENT_SUSPENDED| \
CLIENT_EXIT)
+#define CLIENT_NODETACHFLAGS \
+ (CLIENT_DEAD| \
+ CLIENT_EXIT)
#define CLIENT_NOSIZEFLAGS \
(CLIENT_DEAD| \
CLIENT_SUSPENDED| \