mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:17:31 +00:00 
			
		
		
		
	Add flags to selectp to enable and disable input to a pane, from Anish
Athalye.
This commit is contained in:
		
							
								
								
									
										7
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								window.c
									
									
									
									
									
								
							@@ -1057,8 +1057,9 @@ window_pane_key(struct window_pane *wp, struct session *sess, int key)
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (wp->fd == -1)
 | 
			
		||||
	if (wp->fd == -1 || wp->flags & PANE_INPUTOFF)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	input_key(wp, key);
 | 
			
		||||
	if (options_get_number(&wp->window->options, "synchronize-panes")) {
 | 
			
		||||
		TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
 | 
			
		||||
@@ -1071,8 +1072,8 @@ window_pane_key(struct window_pane *wp, struct session *sess, int key)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
window_pane_mouse(
 | 
			
		||||
    struct window_pane *wp, struct session *sess, struct mouse_event *m)
 | 
			
		||||
window_pane_mouse(struct window_pane *wp, struct session *sess,
 | 
			
		||||
    struct mouse_event *m)
 | 
			
		||||
{
 | 
			
		||||
	if (!window_pane_visible(wp))
 | 
			
		||||
		return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user