mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Ignore clients that are suspended or exiting.
This commit is contained in:
		
							
								
								
									
										6
									
								
								resize.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								resize.c
									
									
									
									
									
								
							@@ -79,6 +79,8 @@ default_window_size(struct session *s, struct window *w, u_int *sx, u_int *sy,
 | 
			
		||||
		TAILQ_FOREACH(c, &clients, entry) {
 | 
			
		||||
			if (c->session == NULL)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (c->flags & CLIENT_NOSIZEFLAGS)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (w != NULL && !session_has(c->session, w))
 | 
			
		||||
				continue;
 | 
			
		||||
			if (w == NULL && c->session != s)
 | 
			
		||||
@@ -99,6 +101,8 @@ default_window_size(struct session *s, struct window *w, u_int *sx, u_int *sy,
 | 
			
		||||
		TAILQ_FOREACH(c, &clients, entry) {
 | 
			
		||||
			if (c->session == NULL)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (c->flags & CLIENT_NOSIZEFLAGS)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (w != NULL && !session_has(c->session, w))
 | 
			
		||||
				continue;
 | 
			
		||||
			if (w == NULL && c->session != s)
 | 
			
		||||
@@ -209,7 +213,7 @@ recalculate_sizes(void)
 | 
			
		||||
			}
 | 
			
		||||
			if (sx == 0 || sy == 0)
 | 
			
		||||
				changed = 0;
 | 
			
		||||
		} else if (type == WINDOW_SIZE_SMALLEST) {
 | 
			
		||||
		} else {
 | 
			
		||||
			sx = sy = UINT_MAX;
 | 
			
		||||
			TAILQ_FOREACH(c, &clients, entry) {
 | 
			
		||||
				if ((s = c->session) == NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user