remove pixel borders for tabbed layout

This commit is contained in:
Dudemanguy911 2018-05-04 00:09:03 +00:00
parent 63684cb2b0
commit 7d7afbede6

View file

@ -445,32 +445,20 @@ static void render_container_tabbed(struct sway_output *output,
colors = &config->border_colors.focused; colors = &config->border_colors.focused;
title_texture = child->title_focused; title_texture = child->title_focused;
if (child->sway_view->border == B_NORMAL) { render_container_simple_border_normal(output, child,
render_container_simple_border_normal(output, child, colors, title_texture, i);
colors, title_texture, i);
} else {
render_container_simple_border_pixel(output, child, colors);
}
render_view(child->sway_view, output); render_view(child->sway_view, output);
} else if (seat_get_focus_inactive(seat, con) == child) { } else if (seat_get_focus_inactive(seat, con) == child) {
colors = &config->border_colors.focused_inactive; colors = &config->border_colors.focused_inactive;
title_texture = child->title_focused_inactive; title_texture = child->title_focused_inactive;
if (child->sway_view->border == B_NORMAL) { render_container_simple_border_normal(output, child,
render_container_simple_border_normal(output, child, colors, title_texture, i);
colors, title_texture, i);
} else {
render_container_simple_border_pixel(output, child, colors);
}
render_view(child->sway_view, output); render_view(child->sway_view, output);
} else { } else {
colors = &config->border_colors.unfocused; colors = &config->border_colors.unfocused;
title_texture = child->title_unfocused; title_texture = child->title_unfocused;
if (child->sway_view->border == B_NORMAL) { render_container_simple_border_normal(output, child,
render_container_simple_border_normal(output, child, colors, title_texture, i);
colors, title_texture, i);
} else {
render_container_simple_border_pixel(output, child, colors);
}
} }
} }
} else { } else {