mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Add notification for input from a pane, from George Nachman.
This commit is contained in:
		
							
								
								
									
										20
									
								
								notify.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								notify.c
									
									
									
									
									
								
							@@ -132,6 +132,26 @@ notify_drain(void)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
notify_input(struct window_pane *wp, struct evbuffer *input)
 | 
			
		||||
{
 | 
			
		||||
	struct client	*c;
 | 
			
		||||
	u_int		 i;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * notify_input() is not queued and only does anything when
 | 
			
		||||
	 * notifications are enabled.
 | 
			
		||||
	 */
 | 
			
		||||
	if (!notify_enabled)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 | 
			
		||||
		c = ARRAY_ITEM(&clients, i);
 | 
			
		||||
		if (c != NULL && (c->flags & CLIENT_CONTROL))
 | 
			
		||||
			control_notify_input(c, wp, input);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
notify_window_layout_changed(struct window *w)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user