mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	bugfix: cmd focus parent don't set focus above ws
In the `focus parent` command, do not set focus above the workspace level. These containers are not meant to be focused. This prevents a crash on repeated `focus parent` commands.
This commit is contained in:
		
							parent
							
								
									ba8f0da9de
								
							
						
					
					
						commit
						afc6ad6419
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -67,6 +67,9 @@ bool move_focus(enum movement_direction direction) {
 | 
			
		|||
	swayc_t *new_view = get_swayc_in_direction(old_view, direction);
 | 
			
		||||
	if (!new_view) {
 | 
			
		||||
		return false;
 | 
			
		||||
	} else if (new_view->type == C_ROOT || new_view->type == C_OUTPUT) {
 | 
			
		||||
		sway_log(L_DEBUG, "Not setting focus above the workspace level");
 | 
			
		||||
		return false;
 | 
			
		||||
	} else if (direction == MOVE_PARENT) {
 | 
			
		||||
		return set_focused_container(new_view);
 | 
			
		||||
	} else if (config->mouse_warping) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue