diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-15 08:07:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 08:07:35 -0400 |
commit | 76bdbe938f2e59da2f8685637b8d2073487c405b (patch) | |
tree | 86139cae959151358077c4a15047f93679801a7e | |
parent | Merge pull request #1954 from RyanDwyer/marks (diff) | |
parent | Correctly clip title texture if necessary (diff) | |
download | sway-76bdbe938f2e59da2f8685637b8d2073487c405b.tar.gz sway-76bdbe938f2e59da2f8685637b8d2073487c405b.tar.zst sway-76bdbe938f2e59da2f8685637b8d2073487c405b.zip |
Merge pull request #1986 from emersion/clip-title-texture
Correctly clip title texture if necessary
-rw-r--r-- | sway/desktop/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 0350e437..b12130d9 100644 --- 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, | |||
409 | WL_OUTPUT_TRANSFORM_NORMAL, | 409 | WL_OUTPUT_TRANSFORM_NORMAL, |
410 | 0.0, output->wlr_output->transform_matrix); | 410 | 0.0, output->wlr_output->transform_matrix); |
411 | 411 | ||
412 | texture_box.width = box.width * output_scale; | ||
412 | render_texture(output->wlr_output, output_damage, title_texture, | 413 | render_texture(output->wlr_output, output_damage, title_texture, |
413 | &texture_box, matrix, 1.0); | 414 | &texture_box, matrix, 1.0); |
414 | } | 415 | } |