Don't clobber the border under the title

This commit is contained in:
Jack Zeal 2026-04-03 23:32:39 -07:00
parent 59c37bc91b
commit d1951f73ec

View file

@ -87,9 +87,16 @@ ssd_titlebar_create(struct ssd *ssd)
width - corner_width, -rc.theme->border_width); width - corner_width, -rc.theme->border_width);
/* Title */ /* Title */
if (theme->window[active].title_bg.border_type) {
// Use a blank background pattern so it doesn't overlay a pattern on the order.
subtree->title = scaled_font_buffer_create_for_titlebar(
subtree->tree, theme->titlebar_height,
NULL);
} else {
subtree->title = scaled_font_buffer_create_for_titlebar( subtree->title = scaled_font_buffer_create_for_titlebar(
subtree->tree, theme->titlebar_height, subtree->tree, theme->titlebar_height,
theme->window[active].titlebar_pattern); theme->window[active].titlebar_pattern);
}
assert(subtree->title); assert(subtree->title);
node_descriptor_create(&subtree->title->scene_buffer->node, node_descriptor_create(&subtree->title->scene_buffer->node,
LAB_NODE_TITLE, view, /*data*/ NULL); LAB_NODE_TITLE, view, /*data*/ NULL);