mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	virtual_pointer: remember current axis for axis events
This commit is contained in:
		
							parent
							
								
									c72efcd1ce
								
							
						
					
					
						commit
						39fd2335bf
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -103,7 +103,8 @@ static void virtual_pointer_axis(struct wl_client *client, | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 	struct wlr_input_device *wlr_dev = &pointer->input_device; | 	struct wlr_input_device *wlr_dev = &pointer->input_device; | ||||||
| 	pointer->axis_valid[axis] = true; | 	pointer->axis = axis; | ||||||
|  | 	pointer->axis_valid[pointer->axis] = true; | ||||||
| 	pointer->axis_event[pointer->axis].device = wlr_dev; | 	pointer->axis_event[pointer->axis].device = wlr_dev; | ||||||
| 	pointer->axis_event[pointer->axis].time_msec = time; | 	pointer->axis_event[pointer->axis].time_msec = time; | ||||||
| 	pointer->axis_event[pointer->axis].orientation = axis; | 	pointer->axis_event[pointer->axis].orientation = axis; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ronan Pigott
						Ronan Pigott