=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/control-notify.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/tmux/control-notify.c 2021/01/20 07:16:54 1.28 --- src/usr.bin/tmux/control-notify.c 2021/03/16 09:14:58 1.29 *************** *** 1,4 **** ! /* $OpenBSD: control-notify.c,v 1.28 2021/01/20 07:16:54 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: control-notify.c,v 1.29 2021/03/16 09:14:58 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott *************** *** 168,173 **** --- 168,184 ---- control_write(c, "%%client-session-changed %s $%u %s", cc->name, s->id, s->name); } + } + } + + void + control_notify_client_detached(struct client *cc) + { + struct client *c; + + TAILQ_FOREACH(c, &clients, entry) { + if (CONTROL_SHOULD_NOTIFY_CLIENT(c)) + control_write(c, "%%client-detached %s", cc->name); } }