mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	another small fix to move_focus
This commit is contained in:
		
							parent
							
								
									66e82a68fc
								
							
						
					
					
						commit
						686780f12d
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -57,7 +57,11 @@ bool move_focus(enum movement_direction direction) {
 | 
				
			||||||
	swayc_t *view = get_swayc_in_direction(
 | 
						swayc_t *view = get_swayc_in_direction(
 | 
				
			||||||
			get_focused_container(&root_container), direction);
 | 
								get_focused_container(&root_container), direction);
 | 
				
			||||||
	if (view) {
 | 
						if (view) {
 | 
				
			||||||
		set_focused_container(get_focused_view(view));
 | 
							if (direction == MOVE_PARENT) {
 | 
				
			||||||
 | 
								set_focused_container(view);
 | 
				
			||||||
 | 
							} else {
 | 
				
			||||||
 | 
								set_focused_container(get_focused_view(view));
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return false;
 | 
						return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue