From a90e6dde75eb1979787282df01be5abe0ee1f1f3 Mon Sep 17 00:00:00 2001 From: Greg V Date: Fri, 22 Oct 2021 17:27:02 +0300 Subject: [PATCH] wayland: frame: fix window title being too high on HiDPI screens --- window/src/os/wayland/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/os/wayland/frame.rs b/window/src/os/wayland/frame.rs index e04a551c7..2050d879c 100644 --- a/window/src/os/wayland/frame.rs +++ b/window/src/os/wayland/frame.rs @@ -862,7 +862,7 @@ impl Frame for ConceptFrame { pixmap.draw_pixmap( (x + item.info.x_offset.get() + item.glyph.bearing_x.get()) as i32, - (HEADER_SIZE * 3 / 4) as i32 + (scaled_header_height * 3 / 4) as i32 + (shaped.metrics.descender - (item.info.y_offset + item.glyph.bearing_y)) .get() as i32,