commit 79e970d86eb514b280979e60aad2ca1468bd21ea
parent 95f6d0deba26436445b45d4d056c1f6dd2ee82da
Author: emersion <contact@emersion.fr>
Date: Tue, 15 May 2018 08:38:28 +0100
Correctly clip title texture if necessary
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
@@ -409,6 +409,7 @@ static void render_container_simple_border_normal(struct sway_output *output,
WL_OUTPUT_TRANSFORM_NORMAL,
0.0, output->wlr_output->transform_matrix);
+ texture_box.width = box.width * output_scale;
render_texture(output->wlr_output, output_damage, title_texture,
&texture_box, matrix, 1.0);
}