mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Rewrite action handling to allow multiple actions at once
This commit is contained in:
		
							parent
							
								
									a54ce40e1c
								
							
						
					
					
						commit
						0b45cce648
					
				
					 12 changed files with 276 additions and 140 deletions
				
			
		| 
						 | 
				
			
			@ -67,8 +67,7 @@ handle_keybinding(struct server *server, uint32_t modifiers, xkb_keysym_t sym)
 | 
			
		|||
		for (size_t i = 0; i < keybind->keysyms_len; i++) {
 | 
			
		||||
			if (xkb_keysym_to_lower(sym) == keybind->keysyms[i]) {
 | 
			
		||||
				wlr_keyboard_set_repeat_info(kb, 0, 0);
 | 
			
		||||
				action(NULL, server, keybind->action,
 | 
			
		||||
				       keybind->command, 0);
 | 
			
		||||
				action(NULL, server, &keybind->actions, 0);
 | 
			
		||||
				return true;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue