mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Do not move the cursor when the mouse wheel is used, GitHub issue 1493.
This commit is contained in:
		
							
								
								
									
										2
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tmux.h
									
									
									
									
									
								
							| @@ -936,7 +936,7 @@ RB_HEAD(sessions, session); | |||||||
|  |  | ||||||
| /* Mouse wheel states. */ | /* Mouse wheel states. */ | ||||||
| #define MOUSE_WHEEL_UP 0 | #define MOUSE_WHEEL_UP 0 | ||||||
| #define MOUSE_WHEEL_DOWN 64 | #define MOUSE_WHEEL_DOWN 1 | ||||||
|  |  | ||||||
| /* Mouse helpers. */ | /* Mouse helpers. */ | ||||||
| #define MOUSE_BUTTONS(b) ((b) & MOUSE_MASK_BUTTONS) | #define MOUSE_BUTTONS(b) ((b) & MOUSE_MASK_BUTTONS) | ||||||
|   | |||||||
| @@ -529,7 +529,7 @@ window_copy_command(struct window_pane *wp, struct client *c, struct session *s, | |||||||
| 		return; | 		return; | ||||||
| 	command = args->argv[0]; | 	command = args->argv[0]; | ||||||
|  |  | ||||||
| 	if (m != NULL && m->valid) | 	if (m != NULL && m->valid && !MOUSE_WHEEL(m->b)) | ||||||
| 		window_copy_move_mouse(m); | 		window_copy_move_mouse(m); | ||||||
|  |  | ||||||
| 	if (args->argc == 1) { | 	if (args->argc == 1) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm