mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue