aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 46419aed154..9673535be79 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8747,7 +8747,7 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b
8747 8747
8748 if (NILP (tip_frame) || XFRAME (tip_frame) != f) 8748 if (NILP (tip_frame) || XFRAME (tip_frame) != f)
8749 { 8749 {
8750 int r, c, text_width, text_height; 8750 int text_width, text_height;
8751 8751
8752 /* When the frame is maximized/fullscreen or running under for 8752 /* When the frame is maximized/fullscreen or running under for
8753 example Xmonad, x_set_window_size_1 will be a no-op. 8753 example Xmonad, x_set_window_size_1 will be a no-op.
@@ -8764,12 +8764,10 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b
8764#endif 8764#endif
8765 text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f)); 8765 text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f));
8766 text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh); 8766 text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh);
8767 r = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh);
8768 /* Update f->scroll_bar_actual_width because it is used in 8767 /* Update f->scroll_bar_actual_width because it is used in
8769 FRAME_PIXEL_WIDTH_TO_TEXT_COLS. */ 8768 FRAME_PIXEL_WIDTH_TO_TEXT_COLS. */
8770 f->scroll_bar_actual_width 8769 f->scroll_bar_actual_width
8771 = FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f); 8770 = FRAME_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f);
8772 c = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f));
8773 change_frame_size (f, text_width, text_height, 0, 1, 0, 1); 8771 change_frame_size (f, text_width, text_height, 0, 1, 0, 1);
8774 } 8772 }
8775 8773