From 7d7afbede6b6732c59a3c47f795227ab2199ad0c Mon Sep 17 00:00:00 2001 From: Dudemanguy911 Date: Fri, 4 May 2018 00:09:03 +0000 Subject: [PATCH] remove pixel borders for tabbed layout --- sway/desktop/output.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 0fd4434f1..8ab7079bb 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -445,32 +445,20 @@ static void render_container_tabbed(struct sway_output *output, colors = &config->border_colors.focused; title_texture = child->title_focused; - if (child->sway_view->border == B_NORMAL) { - render_container_simple_border_normal(output, child, - colors, title_texture, i); - } else { - render_container_simple_border_pixel(output, child, colors); - } + render_container_simple_border_normal(output, child, + colors, title_texture, i); render_view(child->sway_view, output); } else if (seat_get_focus_inactive(seat, con) == child) { colors = &config->border_colors.focused_inactive; title_texture = child->title_focused_inactive; - if (child->sway_view->border == B_NORMAL) { - render_container_simple_border_normal(output, child, - colors, title_texture, i); - } else { - render_container_simple_border_pixel(output, child, colors); - } + render_container_simple_border_normal(output, child, + colors, title_texture, i); render_view(child->sway_view, output); } else { colors = &config->border_colors.unfocused; title_texture = child->title_unfocused; - if (child->sway_view->border == B_NORMAL) { - render_container_simple_border_normal(output, child, - colors, title_texture, i); - } else { - render_container_simple_border_pixel(output, child, colors); - } + render_container_simple_border_normal(output, child, + colors, title_texture, i); } } } else {