commit 76bdbe938f2e59da2f8685637b8d2073487c405b
parent 95f6d0deba26436445b45d4d056c1f6dd2ee82da
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 15 May 2018 08:07:35 -0400
Merge pull request #1986 from emersion/clip-title-texture
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);
}