Allow detach even if suspend flag set, GitHub issue 2932.

This commit is contained in:
nicm 2021-10-28 18:54:33 +00:00
parent 76f5d3364c
commit 49d33a4282
2 changed files with 4 additions and 1 deletions

View File

@ -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;

3
tmux.h
View File

@ -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| \