mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	config: allow <libinput><device> without category attribute
...to define a 'default' profile because that is likely to be more user-friendly.
This commit is contained in:
		
							parent
							
								
									5337eda242
								
							
						
					
					
						commit
						84fcb99884
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -445,7 +445,12 @@ get_accel_profile(const char *s)
 | 
			
		|||
static void
 | 
			
		||||
fill_libinput_category(char *nodename, char *content)
 | 
			
		||||
{
 | 
			
		||||
	if (!strcmp(nodename, "category.device.libinput")) {
 | 
			
		||||
	/*
 | 
			
		||||
	 * Create a new profile (libinput-category) on `<libinput><device>`
 | 
			
		||||
	 * so that the 'default' profile can be created without even providing a
 | 
			
		||||
	 * category="" attribute (same as <device category="default">...)
 | 
			
		||||
	 */
 | 
			
		||||
	if (!strcmp(nodename, "device.libinput")) {
 | 
			
		||||
		current_libinput_category = libinput_category_create();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue