mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	action: If we have a view that is an activator, use that instead of the current focus window
If we don't switch focus, we want the close button to close the window associated with it, not the current focus window. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
		
							parent
							
								
									f9f9d809c8
								
							
						
					
					
						commit
						d568c60003
					
				
					 5 changed files with 26 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -64,7 +64,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]) {
 | 
			
		||||
				action(server, keybind->action,
 | 
			
		||||
				action(NULL, server, keybind->action,
 | 
			
		||||
				       keybind->command, 0);
 | 
			
		||||
				return true;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue