mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
fix tabbed layout for no borders
This commit is contained in:
parent
56102da124
commit
77f41efd4e
1 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue