mirror of
https://github.com/tmux/tmux.git
synced 2025-03-30 19:48:48 +00:00
Allow detach even if suspend flag set, GitHub issue 2932.
This commit is contained in:
parent
76f5d3364c
commit
49d33a4282
@ -516,7 +516,7 @@ server_client_detach(struct client *c, enum msgtype msgtype)
|
|||||||
{
|
{
|
||||||
struct session *s = c->session;
|
struct session *s = c->session;
|
||||||
|
|
||||||
if (s == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
|
if (s == NULL || (c->flags & CLIENT_NODETACHFLAGS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
c->flags |= CLIENT_EXIT;
|
c->flags |= CLIENT_EXIT;
|
||||||
|
3
tmux.h
3
tmux.h
@ -1710,6 +1710,9 @@ struct client {
|
|||||||
(CLIENT_DEAD| \
|
(CLIENT_DEAD| \
|
||||||
CLIENT_SUSPENDED| \
|
CLIENT_SUSPENDED| \
|
||||||
CLIENT_EXIT)
|
CLIENT_EXIT)
|
||||||
|
#define CLIENT_NODETACHFLAGS \
|
||||||
|
(CLIENT_DEAD| \
|
||||||
|
CLIENT_EXIT)
|
||||||
#define CLIENT_NOSIZEFLAGS \
|
#define CLIENT_NOSIZEFLAGS \
|
||||||
(CLIENT_DEAD| \
|
(CLIENT_DEAD| \
|
||||||
CLIENT_SUSPENDED| \
|
CLIENT_SUSPENDED| \
|
||||||
|
Loading…
Reference in New Issue
Block a user