mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	input: move cursor event listeners from tablet to seat
Otherwise we would subscribe multiple times to the same event when having multiple tablets.
This commit is contained in:
		
							parent
							
								
									538eb3ee83
								
							
						
					
					
						commit
						dd0cee02a4
					
				
					 9 changed files with 40 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -23,15 +23,13 @@ struct drawing_tablet {
 | 
			
		|||
	double slider;
 | 
			
		||||
	double wheel_delta;
 | 
			
		||||
	struct {
 | 
			
		||||
		struct wl_listener tablet_tool_proximity;
 | 
			
		||||
		struct wl_listener tablet_tool_axis;
 | 
			
		||||
		struct wl_listener tablet_tool_tip;
 | 
			
		||||
		struct wl_listener tablet_tool_button;
 | 
			
		||||
		struct wl_listener destroy;
 | 
			
		||||
	} handlers;
 | 
			
		||||
	struct wl_list link; /* seat.tablets */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void tablet_init(struct seat *seat, struct wlr_input_device *wlr_input_device);
 | 
			
		||||
void tablet_init(struct seat *seat);
 | 
			
		||||
void tablet_finish(struct seat *seat);
 | 
			
		||||
void tablet_create(struct seat *seat, struct wlr_input_device *wlr_input_device);
 | 
			
		||||
 | 
			
		||||
#endif /* LABWC_TABLET_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue