mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	ssd: add top border
Raise border on top of (z-order) titlebar
This commit is contained in:
		
							parent
							
								
									852a6f02fa
								
							
						
					
					
						commit
						a601615866
					
				
					 2 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -156,8 +156,8 @@ ssd_create(struct view *view)
 | 
			
		|||
	view->ssd.tree = wlr_scene_tree_create(&view->scene_tree->node);
 | 
			
		||||
	wlr_scene_node_lower_to_bottom(&view->ssd.tree->node);
 | 
			
		||||
	ssd_extents_create(view);
 | 
			
		||||
	ssd_border_create(view);
 | 
			
		||||
	ssd_titlebar_create(view);
 | 
			
		||||
	ssd_border_create(view);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,6 +40,9 @@ ssd_border_create(struct view *view)
 | 
			
		|||
		add_scene_rect(&subtree->parts, LAB_SSD_PART_BOTTOM, parent,
 | 
			
		||||
			full_width, theme->border_width,
 | 
			
		||||
			0, height, color);
 | 
			
		||||
		add_scene_rect(&subtree->parts, LAB_SSD_PART_TOP, parent,
 | 
			
		||||
			full_width - 2 * BUTTON_WIDTH, theme->border_width,
 | 
			
		||||
			BUTTON_WIDTH, -SSD_HEIGHT, color);
 | 
			
		||||
	} FOR_EACH_END
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -71,6 +74,13 @@ ssd_border_update(struct view *view)
 | 
			
		|||
				wlr_scene_rect_set_size(rect, full_width, theme->border_width);
 | 
			
		||||
				wlr_scene_node_set_position(part->node, 0, height);
 | 
			
		||||
				continue;
 | 
			
		||||
			case LAB_SSD_PART_TOP:
 | 
			
		||||
				wlr_scene_rect_set_size(rect,
 | 
			
		||||
					full_width - 2 * BUTTON_WIDTH,
 | 
			
		||||
					theme->border_width);
 | 
			
		||||
				wlr_scene_node_set_position(part->node,
 | 
			
		||||
					BUTTON_WIDTH, -SSD_HEIGHT);
 | 
			
		||||
				continue;
 | 
			
		||||
			default:
 | 
			
		||||
				continue;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue