mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user