Fix border colour bug in the floating panes branch where inactive

floating pane borders incorrectly use the active colour at intersections
with tiled pane borders. From Michael Grant.
This commit is contained in:
nicm
2026-06-02 07:11:49 +00:00
parent 9725a0b9bf
commit 35f4c8b333

View File

@@ -882,7 +882,9 @@ screen_redraw_draw_borders_style(struct screen_redraw_ctx *ctx, u_int x,
struct format_tree *ft; struct format_tree *ft;
int *flag; int *flag;
if (screen_redraw_check_is(ctx, x, y, active)) { if ((wp->flags & PANE_FLOATING && wp == active) ||
(!(wp->flags & PANE_FLOATING) &&
screen_redraw_check_is(ctx, x, y, active))) {
flag = &wp->active_border_gc_set; flag = &wp->active_border_gc_set;
gc = &wp->active_border_gc; gc = &wp->active_border_gc;
border_option = "pane-active-border-style"; border_option = "pane-active-border-style";