aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-15 08:38:28 +0100
committeremersion <contact@emersion.fr>2018-05-15 08:38:28 +0100
commit79e970d86eb514b280979e60aad2ca1468bd21ea (patch)
tree86139cae959151358077c4a15047f93679801a7e /sway/desktop
parent95f6d0deba26436445b45d4d056c1f6dd2ee82da (diff)
Correctly clip title texture if necessary
Diffstat (limited to 'sway/desktop')
-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,
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);
}