From: Yuuki Harano Date: Mon, 10 May 2021 15:09:04 +0000 (+0900) Subject: Fix frame size shrinking when turning fringe/scrollbars on/off X-Git-Tag: emacs-29.0.90~3704 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=486e77befd2ea7fd750b1f24eb5dfaf2b91d70b3;p=emacs.git 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. --- 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 ();