[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).
This commit is contained in:
Dmitry Gutov 2026-06-03 15:55:03 +03:00
parent 776ee085ff
commit 07e02917ee

View file

@ -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;