aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 0def0bac..ce90eae0 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -518,6 +518,10 @@ static void render_titlebar(struct sway_output *output,
518 struct wlr_box texture_box; 518 struct wlr_box texture_box;
519 wlr_texture_get_size(title_texture, 519 wlr_texture_get_size(title_texture,
520 &texture_box.width, &texture_box.height); 520 &texture_box.width, &texture_box.height);
521
522 float title_scale = container_get_effective_output(con)->wlr_output->scale;
523 texture_box.width = texture_box.width * output_scale / title_scale;
524 texture_box.height = texture_box.height * output_scale / title_scale;
521 ob_title_width = texture_box.width; 525 ob_title_width = texture_box.width;
522 526
523 // The title texture might be shorter than the config->font_height, 527 // The title texture might be shorter than the config->font_height,