fix tabbed layout for no borders

This commit is contained in:
Dudemanguy911 2018-05-11 00:11:58 +00:00
parent 56102da124
commit 77f41efd4e

View file

@ -562,20 +562,20 @@ static void render_container_tabbed(struct sway_output *output,
if (child->type == C_VIEW) { if (child->type == C_VIEW) {
struct border_colors *colors; struct border_colors *colors;
struct wlr_texture *title_texture; struct wlr_texture *title_texture;
if (child->sway_view->border != B_NONE) { if (focus == child) {
if (focus == child) { colors = &config->border_colors.focused;
colors = &config->border_colors.focused; title_texture = child->title_focused;
title_texture = child->title_focused; active_child = child;
active_child = child; } 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; active_child = child;
active_child = child; } 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_NONE) {
render_container_top_tabbed_border_normal(output, child, colors, render_container_top_tabbed_border_normal(output, child, colors,
title_texture, i); title_texture, i);
} }