mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Sync OpenBSD patchset 486:
Don't backoff based on suspended or deda clients as they are always likely to have data backed up.
This commit is contained in:
parent
5be38f2b3a
commit
9e208584ed
@ -1,4 +1,4 @@
|
||||
/* $Id: server-window.c,v 1.3 2009-11-02 21:32:51 tcunha Exp $ */
|
||||
/* $Id: server-window.c,v 1.4 2009-11-04 22:47:29 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -78,6 +78,8 @@ server_window_backoff(struct window_pane *wp)
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->session == NULL)
|
||||
continue;
|
||||
if ((c->flags & (CLIENT_SUSPENDED|CLIENT_DEAD)) != 0)
|
||||
continue;
|
||||
if (c->session->curw->window != wp->window)
|
||||
continue;
|
||||
if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD)
|
||||
|
Loading…
Reference in New Issue
Block a user