mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	transaction: fix size of child container decorations in stacking layouts
Before this commit stacking containers with more than one child sized
the active container's decorations as if there was only one titlebar.
Commit a25645a introduced the local variable 'net_height' but
incorrectly calculated it for stacking containers. Fixes #8686.
			
			
This commit is contained in:
		
							parent
							
								
									810142dcc4
								
							
						
					
					
						commit
						fb6d61b58f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -343,7 +343,7 @@ static void arrange_children(enum sway_container_layout layout, list_t *children | ||||||
| 			wlr_scene_node_set_position(&child->scene_tree->node, 0, title_height); | 			wlr_scene_node_set_position(&child->scene_tree->node, 0, title_height); | ||||||
| 			wlr_scene_node_reparent(&child->scene_tree->node, content); | 			wlr_scene_node_reparent(&child->scene_tree->node, content); | ||||||
| 
 | 
 | ||||||
| 			int net_height = height - title_bar_height; | 			int net_height = height - title_height; | ||||||
| 			if (activated && width > 0 && net_height > 0) { | 			if (activated && width > 0 && net_height > 0) { | ||||||
| 				arrange_container(child, width, net_height, title_bar_height == 0, 0); | 				arrange_container(child, width, net_height, title_bar_height == 0, 0); | ||||||
| 			} else { | 			} else { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 alex-huff
						alex-huff