=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.422 retrieving revision 1.423 diff -c -r1.422 -r1.423 *** src/usr.bin/tmux/tty.c 2022/07/06 07:36:36 1.422 --- src/usr.bin/tmux/tty.c 2022/08/02 11:09:26 1.423 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.422 2022/07/06 07:36:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.423 2022/08/02 11:09:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1626,1638 **** if (ctx->set_client_cb == NULL) return; TAILQ_FOREACH(c, &clients, entry) { ! if (!tty_client_ready(c)) ! continue; ! state = ctx->set_client_cb(ctx, c); ! if (state == -1) ! break; ! if (state == 0) ! continue; cmdfn(&c->tty, ctx); } } --- 1626,1645 ---- if (ctx->set_client_cb == NULL) return; TAILQ_FOREACH(c, &clients, entry) { ! if (ctx->allow_invisible_panes) { ! if (c->session == NULL || ! c->tty.term == NULL || ! c->flags & CLIENT_SUSPENDED) ! continue; ! } else { ! if (!tty_client_ready(c)) ! continue; ! state = ctx->set_client_cb(ctx, c); ! if (state == -1) ! break; ! if (state == 0) ! continue; ! } cmdfn(&c->tty, ctx); } }