Merge pull request #1986 from emersion/clip-title-texture

Correctly clip title texture if necessary
This commit is contained in:
Drew DeVault 2018-05-15 08:07:35 -04:00 committed by GitHub
commit 76bdbe938f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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