mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Don't accept input to a window if it not visible.
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -580,7 +580,7 @@ window_pane_parse(struct window_pane *wp)
 | 
			
		||||
void
 | 
			
		||||
window_pane_key(struct window_pane *wp, struct client *c, int key)
 | 
			
		||||
{
 | 
			
		||||
 	if (wp->fd == -1)
 | 
			
		||||
	if (wp->fd == -1 || !window_pane_visible(wp))
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (wp->mode != NULL) {
 | 
			
		||||
@@ -594,7 +594,7 @@ void
 | 
			
		||||
window_pane_mouse(
 | 
			
		||||
    struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y)
 | 
			
		||||
{
 | 
			
		||||
 	if (wp->fd == -1)
 | 
			
		||||
	if (wp->fd == -1 || !window_pane_visible(wp))
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	/* XXX convert from 1-based? */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user