mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Don't resize unless size changed.
This commit is contained in:
		
							
								
								
									
										5
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								screen.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: screen.c,v 1.9 2007-08-28 09:26:07 nicm Exp $ */
 | 
					/* $Id: screen.c,v 1.10 2007-09-21 18:00:58 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -100,6 +100,9 @@ screen_resize(struct screen *s, u_int sx, u_int sy)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	u_int	i, ox, oy, ny;
 | 
						u_int	i, ox, oy, ny;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (sx == s->sx || sy == s->sy)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (sx < 1)
 | 
						if (sx < 1)
 | 
				
			||||||
		sx = 1;
 | 
							sx = 1;
 | 
				
			||||||
	if (sy < 1)
 | 
						if (sy < 1)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tmux.c,v 1.7 2007-09-20 09:43:33 nicm Exp $ */
 | 
					/* $Id: tmux.c,v 1.8 2007-09-21 18:00:58 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -190,7 +190,7 @@ restart:
 | 
				
			|||||||
		else if (op != OP_LIST) {
 | 
							else if (op != OP_LIST) {
 | 
				
			||||||
			if (server_start() != 0)
 | 
								if (server_start() != 0)
 | 
				
			||||||
				errx(1, "couldn't start server");	
 | 
									errx(1, "couldn't start server");	
 | 
				
			||||||
			sleep(1);
 | 
								sleep(1); /* XXX this sucks */
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		if (!S_ISSOCK(sb.st_mode))
 | 
							if (!S_ISSOCK(sb.st_mode))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user