From 07e02917eec4abb84ee8868636e30232c9b44466 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 3 Jun 2026 15:55:03 +0300 Subject: [PATCH] [GTK3] Re-fix the stored values for width and height * src/gtkutil.c (xg_frame_set_char_size) (xg_frame_set_size_and_position): Round WIDTH and HEIGHT to multiples of SCALE without adding toolbar/menubar (bug#80662). --- src/gtkutil.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 4fc6b3e0108..8ec3d9ce9bf 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1203,8 +1203,8 @@ xg_frame_set_char_size (struct frame *f, int width, int height) outer_height /= scale; outer_width /= scale; - height = outer_height * scale; - width = outer_width * scale; + height = height / scale * scale; + width = width / scale * scale; xg_wm_set_size_hint (f, 0, 0); @@ -1331,8 +1331,8 @@ xg_frame_set_size_and_position (struct frame *f, int width, int height) outer_height /= scale; outer_width /= scale; - height = outer_height * scale; - width = outer_width * scale; + height = height / scale * scale; + width = width / scale * scale; x /= scale; y /= scale;