mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 11:44:23 +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) \
|
#define CONTROL_SHOULD_NOTIFY_CLIENT(c) \
|
||||||
((c) != NULL && ((c)->flags & CLIENT_CONTROL) && \
|
((c) != NULL && ((c)->flags & CLIENT_CONTROL) && \
|
||||||
|
(~(c)->flags & CLIENT_EXIT) && \
|
||||||
(c)->control_state != NULL)
|
(c)->control_state != NULL)
|
||||||
|
|
||||||
void
|
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)
|
if (winlink_find_by_window(&c->session->windows, wp->window) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (c->flags & CONTROL_IGNORE_FLAGS) {
|
if (c->flags & (CONTROL_IGNORE_FLAGS|CLIENT_EXIT)) {
|
||||||
cp = control_get_pane(c, wp);
|
cp = control_get_pane(c, wp);
|
||||||
if (cp != NULL)
|
if (cp != NULL)
|
||||||
goto ignore;
|
goto ignore;
|
||||||
|
|||||||
Reference in New Issue
Block a user