mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Display instance (if present) in nested layouts
This commit is contained in:
		
							parent
							
								
									e714fbcbec
								
							
						
					
					
						commit
						d443bce6fe
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -254,7 +254,9 @@ static char *generate_container_title(swayc_t *container) {
 | 
			
		|||
		swayc_t* child = container->children->items[i];
 | 
			
		||||
		const char *title = NULL;
 | 
			
		||||
		if (child->type == C_VIEW) {
 | 
			
		||||
			title = child->app_id ? child->app_id : (child->class ? child->class : "(null)");
 | 
			
		||||
			title = child->app_id ? child->app_id :
 | 
			
		||||
				(child->instance ? child->instance :
 | 
			
		||||
				(child->class ? child->class :"(null)"));
 | 
			
		||||
		} else { //child->type == C_CONTAINER
 | 
			
		||||
			title = generate_container_title(child);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue