mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1170,6 +1170,7 @@ struct tty {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	u_int		 mouse_last_x;
 | 
						u_int		 mouse_last_x;
 | 
				
			||||||
	u_int		 mouse_last_y;
 | 
						u_int		 mouse_last_y;
 | 
				
			||||||
 | 
						u_int		 mouse_last_b;
 | 
				
			||||||
	int		 mouse_drag_flag;
 | 
						int		 mouse_drag_flag;
 | 
				
			||||||
	void		(*mouse_drag_update)(struct client *,
 | 
						void		(*mouse_drag_update)(struct client *,
 | 
				
			||||||
			    struct mouse_event *);
 | 
								    struct mouse_event *);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -893,7 +893,7 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size,
 | 
				
			|||||||
	m->x = x;
 | 
						m->x = x;
 | 
				
			||||||
	m->ly = tty->mouse_last_y;
 | 
						m->ly = tty->mouse_last_y;
 | 
				
			||||||
	m->y = y;
 | 
						m->y = y;
 | 
				
			||||||
	m->lb = m->b;
 | 
						m->lb = tty->mouse_last_b;
 | 
				
			||||||
	m->b = b;
 | 
						m->b = b;
 | 
				
			||||||
	m->sgr_type = sgr_type;
 | 
						m->sgr_type = sgr_type;
 | 
				
			||||||
	m->sgr_b = sgr_b;
 | 
						m->sgr_b = sgr_b;
 | 
				
			||||||
@@ -901,6 +901,7 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size,
 | 
				
			|||||||
	/* Update last mouse state. */
 | 
						/* Update last mouse state. */
 | 
				
			||||||
	tty->mouse_last_x = x;
 | 
						tty->mouse_last_x = x;
 | 
				
			||||||
	tty->mouse_last_y = y;
 | 
						tty->mouse_last_y = y;
 | 
				
			||||||
 | 
						tty->mouse_last_b = b;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return (0);
 | 
						return (0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user