Correctly clip title texture if necessary

This commit is contained in:
emersion 2018-05-15 08:38:28 +01:00
parent 95f6d0deba
commit 79e970d86e
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}