From 77f41efd4e0d91e3a3e9c68c4ebbe9f47308808e Mon Sep 17 00:00:00 2001 From: Dudemanguy911 Date: Fri, 11 May 2018 00:11:58 +0000 Subject: [PATCH] fix tabbed layout for no borders --- sway/desktop/output.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 9a1c64696..7cb2bedb0 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -562,20 +562,20 @@ static void render_container_tabbed(struct sway_output *output, if (child->type == C_VIEW) { struct border_colors *colors; struct wlr_texture *title_texture; - if (child->sway_view->border != B_NONE) { - if (focus == child) { - colors = &config->border_colors.focused; - title_texture = child->title_focused; - active_child = child; - } else if (seat_get_focus_inactive(seat, con) == child) { - colors= &config->border_colors.focused_inactive; - title_texture = child->title_focused_inactive; - active_child = child; - } else { - colors = &config->border_colors.unfocused; - title_texture = child->title_unfocused; - } + if (focus == child) { + colors = &config->border_colors.focused; + title_texture = child->title_focused; + active_child = child; + } else if (seat_get_focus_inactive(seat, con) == child) { + colors= &config->border_colors.focused_inactive; + title_texture = child->title_focused_inactive; + active_child = child; + } else { + colors = &config->border_colors.unfocused; + title_texture = child->title_unfocused; + } + if (child->sway_view->border != B_NONE) { render_container_top_tabbed_border_normal(output, child, colors, title_texture, i); }