aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 65eb6b497f2..629ac4b26ff 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1095,6 +1095,7 @@ x_change_tool_bar_height (struct frame *f, int height)
1095 int unit = FRAME_LINE_HEIGHT (f); 1095 int unit = FRAME_LINE_HEIGHT (f);
1096 int old_height = FRAME_TOOL_BAR_HEIGHT (f); 1096 int old_height = FRAME_TOOL_BAR_HEIGHT (f);
1097 int lines = (height + unit - 1) / unit; 1097 int lines = (height + unit - 1) / unit;
1098 Lisp_Object fullscreen;
1098 1099
1099 /* Make sure we redisplay all windows in this frame. */ 1100 /* Make sure we redisplay all windows in this frame. */
1100 windows_or_buffers_changed = 60; 1101 windows_or_buffers_changed = 60;
@@ -1126,7 +1127,10 @@ x_change_tool_bar_height (struct frame *f, int height)
1126 f->n_tool_bar_rows = 0; 1127 f->n_tool_bar_rows = 0;
1127 1128
1128 adjust_frame_size (f, -1, -1, 1129 adjust_frame_size (f, -1, -1,
1129 (!f->tool_bar_redisplayed_once ? 1 1130 ((!f->tool_bar_redisplayed_once
1131 && (NILP (fullscreen =
1132 get_frame_param (f, Qfullscreen))
1133 || EQ (fullscreen, Qfullwidth))) ? 1
1130 : (old_height == 0 || height == 0) ? 2 1134 : (old_height == 0 || height == 0) ? 2
1131 : 4), 1135 : 4),
1132 false, Qtool_bar_lines); 1136 false, Qtool_bar_lines);
@@ -3180,8 +3184,6 @@ This function is an internal primitive--use `make-frame' instead. */)
3180 "title", "Title", RES_TYPE_STRING); 3184 "title", "Title", RES_TYPE_STRING);
3181 x_default_parameter (f, parms, Qwait_for_wm, Qt, 3185 x_default_parameter (f, parms, Qwait_for_wm, Qt,
3182 "waitForWM", "WaitForWM", RES_TYPE_BOOLEAN); 3186 "waitForWM", "WaitForWM", RES_TYPE_BOOLEAN);
3183 x_default_parameter (f, parms, Qfullscreen, Qnil,
3184 "fullscreen", "Fullscreen", RES_TYPE_SYMBOL);
3185 x_default_parameter (f, parms, Qtool_bar_position, 3187 x_default_parameter (f, parms, Qtool_bar_position,
3186 FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL); 3188 FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL);
3187 3189
@@ -3259,6 +3261,12 @@ This function is an internal primitive--use `make-frame' instead. */)
3259 x_wm_set_size_hint (f, window_prompting, false); 3261 x_wm_set_size_hint (f, window_prompting, false);
3260 unblock_input (); 3262 unblock_input ();
3261 3263
3264 /* Process fullscreen parameter here in the hope that normalizing a
3265 fullheight/fullwidth frame will produce the size set by the last
3266 adjust_frame_size call. */
3267 x_default_parameter (f, parms, Qfullscreen, Qnil,
3268 "fullscreen", "Fullscreen", RES_TYPE_SYMBOL);
3269
3262 /* Make the window appear on the frame and enable display, unless 3270 /* Make the window appear on the frame and enable display, unless
3263 the caller says not to. However, with explicit parent, Emacs 3271 the caller says not to. However, with explicit parent, Emacs
3264 cannot control visibility, so don't try. */ 3272 cannot control visibility, so don't try. */
@@ -4318,7 +4326,7 @@ elements (all size values are in pixels).
4318 inner_height -= tool_bar_height; 4326 inner_height -= tool_bar_height;
4319 4327
4320 return 4328 return
4321 listn (CONSTYPE_PURE, 10, 4329 listn (CONSTYPE_HEAP, 10,
4322 Fcons (Qframe_position, 4330 Fcons (Qframe_position,
4323 Fcons (make_number (f->left_pos), make_number (f->top_pos))), 4331 Fcons (make_number (f->left_pos), make_number (f->top_pos))),
4324 Fcons (Qframe_outer_size, 4332 Fcons (Qframe_outer_size,