mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Focus new sibling added to container
This makes sure that the window being added to a container gets focus.
This commit is contained in:
		
							parent
							
								
									ed46fa7230
								
							
						
					
					
						commit
						cf64000e21
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -99,6 +99,8 @@ swayc_t *add_sibling(swayc_t *fixed, swayc_t *active) {
 | 
				
			||||||
		list_insert(parent->children, i + 1, active);
 | 
							list_insert(parent->children, i + 1, active);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	active->parent = parent;
 | 
						active->parent = parent;
 | 
				
			||||||
 | 
						// focus new child
 | 
				
			||||||
 | 
						parent->focused = active;
 | 
				
			||||||
	return active->parent;
 | 
						return active->parent;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue