mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	rcxml: Make sure a default libinput category always exists
Previously, if rc.xml defined only non-default libinput categories, no default category was created. This meant that configure_libinput() might totally skip configuring some devices even with default settings, like tap-to-click. Fix this by making sure that a default category is always created.
This commit is contained in:
		
							parent
							
								
									500eddbe88
								
							
						
					
					
						commit
						41a4176b17
					
				
					 4 changed files with 26 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -680,10 +680,10 @@ post_processing(void)
 | 
			
		|||
	if (!rc.font_osd.name) {
 | 
			
		||||
		rc.font_osd.name = xstrdup("sans");
 | 
			
		||||
	}
 | 
			
		||||
	if (!wl_list_length(&rc.libinput_categories)) {
 | 
			
		||||
	if (!libinput_category_get_default()) {
 | 
			
		||||
		/* So we still allow tap to click by default */
 | 
			
		||||
		struct libinput_category *l = libinput_category_create();
 | 
			
		||||
		l->type = DEFAULT_DEVICE;
 | 
			
		||||
		assert(l && libinput_category_get_default() == l);
 | 
			
		||||
	}
 | 
			
		||||
	if (!wl_list_length(&rc.workspace_config.workspaces)) {
 | 
			
		||||
		struct workspace *workspace = znew(*workspace);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue