aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-05-15 08:38:28 +0100
committerLibravatar emersion <contact@emersion.fr>2018-05-15 08:38:28 +0100
commit79e970d86eb514b280979e60aad2ca1468bd21ea (patch)
tree86139cae959151358077c4a15047f93679801a7e
parentMerge pull request #1954 from RyanDwyer/marks (diff)
downloadsway-79e970d86eb514b280979e60aad2ca1468bd21ea.tar.gz
sway-79e970d86eb514b280979e60aad2ca1468bd21ea.tar.zst
sway-79e970d86eb514b280979e60aad2ca1468bd21ea.zip
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 }