Ignore a resize from a client whose tty is closed, from someone in

GitHub issue 5723.
This commit is contained in:
nicm
2026-10-12 10:48:05 +00:00
committed by tmux update bot
parent 5bfa83d1fa
commit ddddd25d70

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: server-client.c,v 1.519 2026/10/09 10:16:02 nicm Exp $ */ /* $OpenBSD: server-client.c,v 1.520 2026/10/12 10:48:05 nicm Exp $ */
/* /*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2604,7 +2604,7 @@ server_client_dispatch(struct imsg *imsg, void *arg)
if (datalen != 0) if (datalen != 0)
goto bad; goto bad;
if (c->flags & CLIENT_CONTROL) if ((c->flags & CLIENT_CONTROL) || (~c->tty.flags & TTY_OPENED))
break; break;
server_client_update_latest(c); server_client_update_latest(c);
old_sx = c->tty.sx; old_sx = c->tty.sx;