mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_seat_touch: add a way for a grab to ignore a touch point
This commit is contained in:
		
							parent
							
								
									94f65e354d
								
							
						
					
					
						commit
						40d17c1305
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -175,6 +175,11 @@ uint32_t wlr_seat_touch_notify_down(struct wlr_seat *seat,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	uint32_t serial = grab->interface->down(grab, time, point);
 | 
						uint32_t serial = grab->interface->down(grab, time, point);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!serial) {
 | 
				
			||||||
 | 
							touch_point_destroy(point);
 | 
				
			||||||
 | 
							return 0;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (serial && wlr_seat_touch_num_points(seat) == 1) {
 | 
						if (serial && wlr_seat_touch_num_points(seat) == 1) {
 | 
				
			||||||
		seat->touch_state.grab_serial = serial;
 | 
							seat->touch_state.grab_serial = serial;
 | 
				
			||||||
		seat->touch_state.grab_id = touch_id;
 | 
							seat->touch_state.grab_id = touch_id;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue