]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix frame size shrinking when turning fringe/scrollbars on/off
authorYuuki Harano <masm+github@masm11.me>
Mon, 10 May 2021 15:09:04 +0000 (00:09 +0900)
committerYuuki Harano <masm+github@masm11.me>
Mon, 10 May 2021 15:09:04 +0000 (00:09 +0900)
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

index 5331b67e331bb4d950a68428242772eeb40f0657..0b0af16aca6e1d8b6b6d56187855ea01fbc0e7d7 100644 (file)
@@ -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 ();