Don't bother to send notifications to clients with CLIENT_EXIT, GitHub

issue 5357 from Ben Maurer.
This commit is contained in:
nicm
2026-07-10 07:25:05 +00:00
parent bcc73e0db4
commit 1508bec957
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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;