mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Don't eat the mouse event that triggers a drag end because we may want
to pass it on to application inside the pane.
This commit is contained in:
		@@ -251,5 +251,6 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m)
 | 
			
		||||
		buf[len++] = x + 33;
 | 
			
		||||
		buf[len++] = y + 33;
 | 
			
		||||
	}
 | 
			
		||||
	log_debug("writing mouse %.*s", (int)len, buf);
 | 
			
		||||
	bufferevent_write(wp->event, buf, len);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -391,7 +391,7 @@ server_client_check_mouse(struct client *c)
 | 
			
		||||
		c->tty.mouse_drag_release = NULL;
 | 
			
		||||
 | 
			
		||||
		c->tty.mouse_drag_flag = 0;
 | 
			
		||||
		return (KEYC_NONE);
 | 
			
		||||
		return (KEYC_MOUSE); /* not a key, but still may want to pass */
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Convert to a key binding. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user