From d1951f73ec7020c69bf9b38f7b10b552f0386322 Mon Sep 17 00:00:00 2001 From: Jack Zeal Date: Fri, 3 Apr 2026 23:32:39 -0700 Subject: [PATCH] Don't clobber the border under the title --- src/ssd/ssd-titlebar.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/ssd/ssd-titlebar.c b/src/ssd/ssd-titlebar.c index 79de5f1d..c76df8e0 100644 --- a/src/ssd/ssd-titlebar.c +++ b/src/ssd/ssd-titlebar.c @@ -87,9 +87,16 @@ ssd_titlebar_create(struct ssd *ssd) width - corner_width, -rc.theme->border_width); /* Title */ - subtree->title = scaled_font_buffer_create_for_titlebar( - subtree->tree, theme->titlebar_height, - theme->window[active].titlebar_pattern); + 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->tree, theme->titlebar_height, + theme->window[active].titlebar_pattern); + } assert(subtree->title); node_descriptor_create(&subtree->title->scene_buffer->node, LAB_NODE_TITLE, view, /*data*/ NULL);