summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-05-15 08:07:35 -0400
committerLibravatar GitHub <noreply@github.com>2018-05-15 08:07:35 -0400
commit76bdbe938f2e59da2f8685637b8d2073487c405b (patch)
tree86139cae959151358077c4a15047f93679801a7e
parentMerge pull request #1954 from RyanDwyer/marks (diff)
parentCorrectly clip title texture if necessary (diff)
downloadsway-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.c1
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 }