From 1508bec957cddbb8be4d8ecee06a2ed11e5d401d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 10 Jul 2026 07:25:05 +0000 Subject: [PATCH] Don't bother to send notifications to clients with CLIENT_EXIT, GitHub issue 5357 from Ben Maurer. --- control-notify.c | 1 + control.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/control-notify.c b/control-notify.c index 021f9884a..e85660297 100644 --- a/control-notify.c +++ b/control-notify.c @@ -25,6 +25,7 @@ #define CONTROL_SHOULD_NOTIFY_CLIENT(c) \ ((c) != NULL && ((c)->flags & CLIENT_CONTROL) && \ + (~(c)->flags & CLIENT_EXIT) && \ (c)->control_state != NULL) void diff --git a/control.c b/control.c index 1b026e849..c1cc79e25 100644 --- a/control.c +++ b/control.c @@ -376,7 +376,7 @@ control_write_output(struct client *c, struct window_pane *wp) if (winlink_find_by_window(&c->session->windows, wp->window) == NULL) return; - if (c->flags & CONTROL_IGNORE_FLAGS) { + if (c->flags & (CONTROL_IGNORE_FLAGS|CLIENT_EXIT)) { cp = control_get_pane(c, wp); if (cp != NULL) goto ignore;