|
|
@ -709,37 +709,39 @@ static void render_tab_content(struct sway_output *output,
|
|
|
|
float output_scale = output->wlr_output->scale;
|
|
|
|
float output_scale = output->wlr_output->scale;
|
|
|
|
float color[4];
|
|
|
|
float color[4];
|
|
|
|
|
|
|
|
|
|
|
|
if (view->border_left) {
|
|
|
|
if (view->border != B_NONE) {
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
if (view->border_left) {
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
box.x = con->x;
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
box.y = con->y + config->border_thickness * 2 + config->font_height;
|
|
|
|
box.x = con->x;
|
|
|
|
box.width = view->border_thickness;
|
|
|
|
box.y = con->y + config->border_thickness * 2 + config->font_height;
|
|
|
|
box.height = view->height;
|
|
|
|
box.width = view->border_thickness;
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
box.height = view->height;
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
}
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (view->border_right) {
|
|
|
|
if (view->border_right) {
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
box.x = view->x + view->width;
|
|
|
|
box.x = view->x + view->width;
|
|
|
|
box.y = con->y + config->border_thickness * 2 + config->font_height;
|
|
|
|
box.y = con->y + config->border_thickness * 2 + config->font_height;
|
|
|
|
box.width = view->border_thickness;
|
|
|
|
box.width = view->border_thickness;
|
|
|
|
box.height = view->height;
|
|
|
|
box.height = view->height;
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (view->border_bottom) {
|
|
|
|
if (view->border_bottom) {
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
color[3] *= con->alpha;
|
|
|
|
box.x = con->x;
|
|
|
|
box.x = con->x;
|
|
|
|
box.y = view->y + view->height;
|
|
|
|
box.y = view->y + view->height;
|
|
|
|
box.width = con->width;
|
|
|
|
box.width = con->width;
|
|
|
|
box.height = view->border_thickness;
|
|
|
|
box.height = view->border_thickness;
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
scale_box(&box, output_scale);
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
render_rect(output->wlr_output, damage, &box, color);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|