mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
remove pixel borders for tabbed layout
This commit is contained in:
parent
63684cb2b0
commit
7d7afbede6
1 changed files with 6 additions and 18 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue