mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	input: clear pointer focus on touch input
Otherwise the pointer focus could interfere with touch input, like showing hover effect on unexpected locations.
This commit is contained in:
		
							parent
							
								
									3dbd5f30fc
								
							
						
					
					
						commit
						eed972cef1
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -123,6 +123,9 @@ handle_touch_down(struct wl_listener *listener, void *data)
 | 
			
		|||
	int touch_point_count = wl_list_length(&seat->touch_points);
 | 
			
		||||
 | 
			
		||||
	if (touch_point->surface) {
 | 
			
		||||
		/* Clear focus to not interfere with touch input */
 | 
			
		||||
		wlr_seat_pointer_notify_clear_focus(seat->seat);
 | 
			
		||||
 | 
			
		||||
		/* Convert coordinates: first [0, 1] => layout */
 | 
			
		||||
		double lx, ly;
 | 
			
		||||
		wlr_cursor_absolute_to_layout_coords(seat->cursor,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue