From 486e77befd2ea7fd750b1f24eb5dfaf2b91d70b3 Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Tue, 11 May 2021 00:09:04 +0900 Subject: [PATCH] Fix frame size shrinking when turning fringe/scrollbars on/off In 66a36f1, I keeped passing text size by mistake. * src/pgtkterm.c (pgtk_set_window_size): Don't use FRAME_PIXEL_TO_TEXT_WIDTH/HEIGHT to pass pixel size. --- src/pgtkterm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 5331b67e331..0b0af16aca6 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -510,8 +510,7 @@ pgtk_set_window_size (struct frame *f, bool change_gravity, f->output_data.pgtk->preferred_width = pixelwidth; f->output_data.pgtk->preferred_height = pixelheight; x_wm_set_size_hint (f, 0, 0); - xg_frame_set_char_size (f, FRAME_PIXEL_TO_TEXT_WIDTH (f, pixelwidth), - FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelheight)); + xg_frame_set_char_size (f, pixelwidth, pixelheight); gtk_widget_queue_resize (FRAME_WIDGET (f)); unblock_input (); -- 2.39.5