mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	cursor: relative-pointer-v1 time is usec
In handle_cursor_motion, the timestamp passed to `wlr_relative_pointer_manager_v1_send_relative_motion` should be microseconds (not milliseconds) according to relative-pointer-v1 spec.
This commit is contained in:
		
							parent
							
								
									59b3c4d06e
								
							
						
					
					
						commit
						d126410de1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -421,8 +421,8 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_relative_pointer_manager_v1_send_relative_motion(
 | 
						wlr_relative_pointer_manager_v1_send_relative_motion(
 | 
				
			||||||
		server.relative_pointer_manager,
 | 
							server.relative_pointer_manager,
 | 
				
			||||||
		cursor->seat->wlr_seat, event->time_msec, dx, dy,
 | 
							cursor->seat->wlr_seat, (uint64_t)event->time_msec * 1000,
 | 
				
			||||||
		dx_unaccel, dy_unaccel);
 | 
							dx, dy, dx_unaccel, dy_unaccel);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_surface *surface = NULL;
 | 
						struct wlr_surface *surface = NULL;
 | 
				
			||||||
	double sx, sy;
 | 
						double sx, sy;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue