mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Merge pull request #1986 from emersion/clip-title-texture
Correctly clip title texture if necessary
This commit is contained in:
commit
76bdbe938f
|
@ -409,6 +409,7 @@ static void render_container_simple_border_normal(struct sway_output *output,
|
||||||
WL_OUTPUT_TRANSFORM_NORMAL,
|
WL_OUTPUT_TRANSFORM_NORMAL,
|
||||||
0.0, output->wlr_output->transform_matrix);
|
0.0, output->wlr_output->transform_matrix);
|
||||||
|
|
||||||
|
texture_box.width = box.width * output_scale;
|
||||||
render_texture(output->wlr_output, output_damage, title_texture,
|
render_texture(output->wlr_output, output_damage, title_texture,
|
||||||
&texture_box, matrix, 1.0);
|
&texture_box, matrix, 1.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue