mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not deref wp if window_get_active_at returns NULL which can happen on
very large terminals, from Michael Graczyk.
This commit is contained in:
		@@ -332,10 +332,11 @@ server_client_check_mouse(struct client *c)
 | 
			
		||||
			where = BORDER;
 | 
			
		||||
		else {
 | 
			
		||||
			wp = window_get_active_at(s->curw->window, x, y);
 | 
			
		||||
			if (wp != NULL)
 | 
			
		||||
			if (wp != NULL) {
 | 
			
		||||
				where = PANE;
 | 
			
		||||
			log_debug("mouse at %u,%u is on pane %%%u", x, y,
 | 
			
		||||
			    wp->id);
 | 
			
		||||
				log_debug("mouse at %u,%u is on pane %%%u",
 | 
			
		||||
				    x, y, wp->id);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if (where == NOWHERE)
 | 
			
		||||
			return (KEYC_NONE);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user