mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Move client offset stuff into control.c since only control clients will
need it.
This commit is contained in:
		@@ -46,7 +46,6 @@ static void
 | 
			
		||||
cmd_refresh_client_update_offset(struct client *tc, const char *value)
 | 
			
		||||
{
 | 
			
		||||
	struct window_pane	*wp;
 | 
			
		||||
	struct client_offset	*co;
 | 
			
		||||
	char			*copy, *colon;
 | 
			
		||||
	u_int			 pane;
 | 
			
		||||
 | 
			
		||||
@@ -63,11 +62,10 @@ cmd_refresh_client_update_offset(struct client *tc, const char *value)
 | 
			
		||||
	if (wp == NULL)
 | 
			
		||||
		goto out;
 | 
			
		||||
 | 
			
		||||
	co = server_client_add_pane_offset(tc, wp);
 | 
			
		||||
	if (strcmp(colon, "on") == 0)
 | 
			
		||||
		co->flags &= ~CLIENT_OFFSET_OFF;
 | 
			
		||||
		control_set_pane_on(tc, wp);
 | 
			
		||||
	else if (strcmp(colon, "off") == 0)
 | 
			
		||||
		co->flags |= CLIENT_OFFSET_OFF;
 | 
			
		||||
		control_set_pane_off(tc, wp);
 | 
			
		||||
 | 
			
		||||
out:
 | 
			
		||||
	free(copy);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user