mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	keyboard repeat configuration
This commit is contained in:
		
							parent
							
								
									3dc4c02c54
								
							
						
					
					
						commit
						326b4aebd1
					
				
					 3 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -271,6 +271,10 @@ entry(xmlNode *node, char *nodename, char *content)
 | 
			
		|||
				LIBINPUT_CONFIG_DWT_DISABLED;
 | 
			
		||||
	} else if (!strcasecmp(nodename, "AccelerationProfile.libinput")) {
 | 
			
		||||
		rc.accel_profile = get_accel_profile(content);
 | 
			
		||||
	} else if (!strcasecmp(nodename, "RepeatRate.keyboard")) {
 | 
			
		||||
		rc.repeat_rate = atoi(content);
 | 
			
		||||
	} else if (!strcasecmp(nodename, "RepeatDelay.keyboard")) {
 | 
			
		||||
		rc.repeat_delay = atoi(content);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -362,6 +366,8 @@ rcxml_init()
 | 
			
		|||
	rc.accel_profile = -1;
 | 
			
		||||
	rc.middle_emu = -1;
 | 
			
		||||
	rc.dwt = -1;
 | 
			
		||||
	rc.repeat_rate = 25;
 | 
			
		||||
	rc.repeat_delay = 600;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static struct {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue