mirror of
https://github.com/tmux/tmux.git
synced 2026-07-11 20:09:32 +00:00
Don't bother to send notifications to clients with CLIENT_EXIT, GitHub
issue 5357 from Ben Maurer.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user