aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 428d970206e..0b9cbdebd6b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3223,8 +3223,8 @@ x_draw_image_relief (struct glyph_string *s)
3223 thick = (tab_bar_button_relief < 0 3223 thick = (tab_bar_button_relief < 0
3224 ? DEFAULT_TAB_BAR_BUTTON_RELIEF 3224 ? DEFAULT_TAB_BAR_BUTTON_RELIEF
3225 : (tool_bar_button_relief < 0 3225 : (tool_bar_button_relief < 0
3226 ? DEFAULT_TOOL_BAR_BUTTON_RELIEF 3226 ? DEFAULT_TOOL_BAR_BUTTON_RELIEF
3227 : min (tool_bar_button_relief, 1000000))); 3227 : min (tool_bar_button_relief, 1000000)));
3228 raised_p = s->hl == DRAW_IMAGE_RAISED; 3228 raised_p = s->hl == DRAW_IMAGE_RAISED;
3229 } 3229 }
3230 else 3230 else
@@ -10222,7 +10222,7 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
10222 false, Qfont); 10222 false, Qfont);
10223#ifndef USE_X_TOOLKIT 10223#ifndef USE_X_TOOLKIT
10224 if ((FRAME_MENU_BAR_HEIGHT (f) != old_menu_bar_height 10224 if ((FRAME_MENU_BAR_HEIGHT (f) != old_menu_bar_height
10225 || FRAME_TAB_BAR_HEIGHT (f) != old_tab_bar_height) 10225 || FRAME_TAB_BAR_HEIGHT (f) != old_tab_bar_height)
10226 && !f->after_make_frame 10226 && !f->after_make_frame
10227 && (EQ (frame_inhibit_implied_resize, Qt) 10227 && (EQ (frame_inhibit_implied_resize, Qt)
10228 || (CONSP (frame_inhibit_implied_resize) 10228 || (CONSP (frame_inhibit_implied_resize)
@@ -10232,7 +10232,8 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
10232 /* If the menu/tab bar height changes, try to keep text height 10232 /* If the menu/tab bar height changes, try to keep text height
10233 constant. */ 10233 constant. */
10234 adjust_frame_size 10234 adjust_frame_size
10235 (f, -1, FRAME_TEXT_HEIGHT (f) + FRAME_MENU_BAR_HEIGHT (f) + FRAME_TAB_BAR_HEIGHT (f) 10235 (f, -1, FRAME_TEXT_HEIGHT (f) + FRAME_MENU_BAR_HEIGHT (f)
10236 + FRAME_TAB_BAR_HEIGHT (f)
10236 - old_menu_bar_height - old_tab_bar_height, 1, false, Qfont); 10237 - old_menu_bar_height - old_tab_bar_height, 1, false, Qfont);
10237#endif /* USE_X_TOOLKIT */ 10238#endif /* USE_X_TOOLKIT */
10238 } 10239 }
@@ -11168,7 +11169,7 @@ x_check_fullscreen (struct frame *f)
11168 case FULLSCREEN_WIDTH: 11169 case FULLSCREEN_WIDTH:
11169 lval = Qfullwidth; 11170 lval = Qfullwidth;
11170 width = x_display_pixel_width (dpyinfo); 11171 width = x_display_pixel_width (dpyinfo);
11171 height = height + FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f); 11172 height = height + FRAME_MENUBAR_HEIGHT (f);
11172 break; 11173 break;
11173 case FULLSCREEN_HEIGHT: 11174 case FULLSCREEN_HEIGHT:
11174 lval = Qfullheight; 11175 lval = Qfullheight;
@@ -11190,7 +11191,7 @@ x_check_fullscreen (struct frame *f)
11190 x_wait_for_event (f, ConfigureNotify); 11191 x_wait_for_event (f, ConfigureNotify);
11191 else 11192 else
11192 { 11193 {
11193 change_frame_size (f, width, height - FRAME_MENUBAR_HEIGHT (f) - FRAME_TABBAR_HEIGHT (f), 11194 change_frame_size (f, width, height - FRAME_MENUBAR_HEIGHT (f),
11194 false, true, false, true); 11195 false, true, false, true);
11195 x_sync (f); 11196 x_sync (f);
11196 } 11197 }
@@ -11366,10 +11367,10 @@ x_set_window_size_1 (struct frame *f, bool change_gravity,
11366 { 11367 {
11367 frame_size_history_add 11368 frame_size_history_add
11368 (f, Qx_set_window_size_1, width, height, 11369 (f, Qx_set_window_size_1, width, height,
11369 list2i (old_height, pixelheight + FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f))); 11370 list2i (old_height, pixelheight + FRAME_MENUBAR_HEIGHT (f)));
11370 11371
11371 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), 11372 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
11372 old_width, pixelheight + FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f)); 11373 old_width, pixelheight + FRAME_MENUBAR_HEIGHT (f));
11373 } 11374 }
11374 else if (EQ (fullscreen, Qfullheight) && height == FRAME_TEXT_HEIGHT (f)) 11375 else if (EQ (fullscreen, Qfullheight) && height == FRAME_TEXT_HEIGHT (f))
11375 { 11376 {
@@ -11385,12 +11386,13 @@ x_set_window_size_1 (struct frame *f, bool change_gravity,
11385 { 11386 {
11386 frame_size_history_add 11387 frame_size_history_add
11387 (f, Qx_set_window_size_3, width, height, 11388 (f, Qx_set_window_size_3, width, height,
11388 list3i (pixelwidth + FRAME_TOOLBAR_WIDTH (f) + FRAME_TABBAR_WIDTH (f), 11389 list3i (pixelwidth + FRAME_TOOLBAR_WIDTH (f),
11389 (pixelheight + FRAME_TOOLBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f) + FRAME_MENUBAR_HEIGHT (f)), 11390 (pixelheight + FRAME_TOOLBAR_HEIGHT (f)
11390 FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f))); 11391 + FRAME_MENUBAR_HEIGHT (f)),
11392 FRAME_MENUBAR_HEIGHT (f)));
11391 11393
11392 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), 11394 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
11393 pixelwidth, pixelheight + FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f)); 11395 pixelwidth, pixelheight + FRAME_MENUBAR_HEIGHT (f));
11394 fullscreen = Qnil; 11396 fullscreen = Qnil;
11395 } 11397 }
11396 11398
@@ -11467,7 +11469,7 @@ x_set_window_size (struct frame *f, bool change_gravity,
11467#ifdef USE_X_TOOLKIT 11469#ifdef USE_X_TOOLKIT
11468 /* The menu bar is not part of text lines. The tool bar 11470 /* The menu bar is not part of text lines. The tool bar
11469 is however. */ 11471 is however. */
11470 pixelh -= FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f); 11472 pixelh -= FRAME_MENUBAR_HEIGHT (f);
11471#endif 11473#endif
11472 text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f)); 11474 text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, FRAME_PIXEL_WIDTH (f));
11473 text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh); 11475 text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, pixelh);
@@ -12263,7 +12265,7 @@ x_wm_set_size_hint (struct frame *f, long flags, bool user_position)
12263 12265
12264 size_hints.flags |= PBaseSize; 12266 size_hints.flags |= PBaseSize;
12265 size_hints.base_width = base_width; 12267 size_hints.base_width = base_width;
12266 size_hints.base_height = base_height + FRAME_MENUBAR_HEIGHT (f) + FRAME_TABBAR_HEIGHT (f); 12268 size_hints.base_height = base_height + FRAME_MENUBAR_HEIGHT (f);
12267 size_hints.min_width = base_width; 12269 size_hints.min_width = base_width;
12268 size_hints.min_height = base_height; 12270 size_hints.min_height = base_height;
12269 } 12271 }