summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2019-09-22 01:15:57 +0300
committerJuri Linkov <juri@linkov.net>2019-09-22 01:15:57 +0300
commitab2f42cad5259db6626f0da1eb01421c5214c799 (patch)
tree265d8647be5740bdee82198601fac921fe7c9e21 /src/term.c
parente3e0920b9f30fd996fb880dc97268e821ab72e82 (diff)
downloademacs-ab2f42cad5259db6626f0da1eb01421c5214c799.tar.gz
emacs-ab2f42cad5259db6626f0da1eb01421c5214c799.tar.bz2
emacs-ab2f42cad5259db6626f0da1eb01421c5214c799.zip
Take into account FRAME_TAB_BAR height in more places.
* src/dispnew.c (handle_window_change_signal, init_display_interactive): * src/frame.c (make_terminal_frame, Fmake_terminal_frame): * src/keyboard.c (Fsuspend_emacs): * src/term.c (Fresume_tty): * src/xterm.c (x_check_fullscreen): Subtract FRAME_TAB_BAR_LINES. * src/xterm.c (x_new_font): Set FRAME_TAB_BAR_HEIGHT. (x_new_font, x_check_fullscreen, x_set_window_size_1) (x_set_window_size, x_wm_set_size_hint): Add FRAME_TABBAR_HEIGHT.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index a88d47f9238..6f9ac099907 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2342,7 +2342,7 @@ frame's terminal). */)
was suspended. */
get_tty_size (fileno (t->display_info.tty->input), &width, &height);
if (width != old_width || height != old_height)
- change_frame_size (f, width, height - FRAME_MENU_BAR_LINES (f),
+ change_frame_size (f, width, height - FRAME_MENU_BAR_LINES (f) - FRAME_TAB_BAR_LINES (f),
0, 0, 0, 0);
SET_FRAME_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1);
}