mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	FocusIn keys can also update the latest client, like normal keys.
This commit is contained in:
		@@ -1286,7 +1286,7 @@ forward_key:
 | 
			
		||||
		window_pane_key(wp, c, s, wl, key, m);
 | 
			
		||||
 | 
			
		||||
out:
 | 
			
		||||
	if (s != NULL)
 | 
			
		||||
	if (s != NULL && key != KEYC_FOCUS_OUT)
 | 
			
		||||
		server_client_update_latest(c);
 | 
			
		||||
	free(event);
 | 
			
		||||
	return (CMD_RETURN_NORMAL);
 | 
			
		||||
 
 | 
			
		||||
@@ -800,13 +800,10 @@ complete_key:
 | 
			
		||||
	tty->flags &= ~TTY_TIMER;
 | 
			
		||||
 | 
			
		||||
	/* Check for focus events. */
 | 
			
		||||
	if (key == KEYC_FOCUS_OUT) {
 | 
			
		||||
	if (key == KEYC_FOCUS_OUT)
 | 
			
		||||
		tty->client->flags &= ~CLIENT_FOCUSED;
 | 
			
		||||
		return (1);
 | 
			
		||||
	} else if (key == KEYC_FOCUS_IN) {
 | 
			
		||||
	else if (key == KEYC_FOCUS_IN)
 | 
			
		||||
		tty->client->flags |= CLIENT_FOCUSED;
 | 
			
		||||
		return (1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Fire the key. */
 | 
			
		||||
	if (key != KEYC_UNKNOWN) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user