diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/window.c b/src/window.c index d8a6976e090..6a52ed7e166 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2945,7 +2945,7 @@ window-start value is reasonable when this function is called. */) | |||
| 2945 | } | 2945 | } |
| 2946 | } | 2946 | } |
| 2947 | 2947 | ||
| 2948 | adjust_glyphs (f); | 2948 | adjust_frame_glyphs (f); |
| 2949 | unblock_input (); | 2949 | unblock_input (); |
| 2950 | 2950 | ||
| 2951 | run_window_configuration_change_hook (f); | 2951 | run_window_configuration_change_hook (f); |
| @@ -3419,6 +3419,7 @@ make_window (void) | |||
| 3419 | non-Lisp data, so do it only for slots which should not be zero. */ | 3419 | non-Lisp data, so do it only for slots which should not be zero. */ |
| 3420 | w->nrows_scale_factor = w->ncols_scale_factor = 1; | 3420 | w->nrows_scale_factor = w->ncols_scale_factor = 1; |
| 3421 | w->left_fringe_width = w->right_fringe_width = -1; | 3421 | w->left_fringe_width = w->right_fringe_width = -1; |
| 3422 | w->mode_line_height = w->header_line_height = -1; | ||
| 3422 | w->phys_cursor_type = -1; | 3423 | w->phys_cursor_type = -1; |
| 3423 | w->phys_cursor_width = -1; | 3424 | w->phys_cursor_width = -1; |
| 3424 | w->scroll_bar_width = -1; | 3425 | w->scroll_bar_width = -1; |
| @@ -3644,7 +3645,7 @@ be applied on the Elisp level. */) | |||
| 3644 | windows_or_buffers_changed++; | 3645 | windows_or_buffers_changed++; |
| 3645 | FRAME_WINDOW_SIZES_CHANGED (f) = 1; | 3646 | FRAME_WINDOW_SIZES_CHANGED (f) = 1; |
| 3646 | 3647 | ||
| 3647 | adjust_glyphs (f); | 3648 | adjust_frame_glyphs (f); |
| 3648 | unblock_input (); | 3649 | unblock_input (); |
| 3649 | 3650 | ||
| 3650 | run_window_configuration_change_hook (f); | 3651 | run_window_configuration_change_hook (f); |
| @@ -3914,7 +3915,7 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 3914 | 3915 | ||
| 3915 | block_input (); | 3916 | block_input (); |
| 3916 | window_resize_apply (p, horflag); | 3917 | window_resize_apply (p, horflag); |
| 3917 | adjust_glyphs (f); | 3918 | adjust_frame_glyphs (f); |
| 3918 | /* Set buffer of NEW to buffer of reference window. Don't run | 3919 | /* Set buffer of NEW to buffer of reference window. Don't run |
| 3919 | any hooks. */ | 3920 | any hooks. */ |
| 3920 | set_window_buffer (new, r->contents, 0, 1); | 3921 | set_window_buffer (new, r->contents, 0, 1); |
| @@ -4043,7 +4044,7 @@ Signal an error when WINDOW is the only window on its frame. */) | |||
| 4043 | recombine_windows (sibling); | 4044 | recombine_windows (sibling); |
| 4044 | } | 4045 | } |
| 4045 | 4046 | ||
| 4046 | adjust_glyphs (f); | 4047 | adjust_frame_glyphs (f); |
| 4047 | 4048 | ||
| 4048 | if (!WINDOW_LIVE_P (FRAME_SELECTED_WINDOW (f))) | 4049 | if (!WINDOW_LIVE_P (FRAME_SELECTED_WINDOW (f))) |
| 4049 | /* We deleted the frame's selected window. */ | 4050 | /* We deleted the frame's selected window. */ |
| @@ -4130,7 +4131,7 @@ grow_mini_window (struct window *w, int delta) | |||
| 4130 | w->total_lines -= XINT (value); | 4131 | w->total_lines -= XINT (value); |
| 4131 | /* Enforce full redisplay. FIXME: make it more selective. */ | 4132 | /* Enforce full redisplay. FIXME: make it more selective. */ |
| 4132 | windows_or_buffers_changed++; | 4133 | windows_or_buffers_changed++; |
| 4133 | adjust_glyphs (f); | 4134 | adjust_frame_glyphs (f); |
| 4134 | unblock_input (); | 4135 | unblock_input (); |
| 4135 | } | 4136 | } |
| 4136 | } | 4137 | } |
| @@ -4164,7 +4165,7 @@ shrink_mini_window (struct window *w) | |||
| 4164 | w->total_lines = 1; | 4165 | w->total_lines = 1; |
| 4165 | /* Enforce full redisplay. FIXME: make it more selective. */ | 4166 | /* Enforce full redisplay. FIXME: make it more selective. */ |
| 4166 | windows_or_buffers_changed++; | 4167 | windows_or_buffers_changed++; |
| 4167 | adjust_glyphs (f); | 4168 | adjust_frame_glyphs (f); |
| 4168 | unblock_input (); | 4169 | unblock_input (); |
| 4169 | } | 4170 | } |
| 4170 | /* If the above failed for whatever strange reason we must make a | 4171 | /* If the above failed for whatever strange reason we must make a |
| @@ -4205,7 +4206,7 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini | |||
| 4205 | 4206 | ||
| 4206 | windows_or_buffers_changed++; | 4207 | windows_or_buffers_changed++; |
| 4207 | FRAME_WINDOW_SIZES_CHANGED (f) = 1; | 4208 | FRAME_WINDOW_SIZES_CHANGED (f) = 1; |
| 4208 | adjust_glyphs (f); | 4209 | adjust_frame_glyphs (f); |
| 4209 | unblock_input (); | 4210 | unblock_input (); |
| 4210 | 4211 | ||
| 4211 | run_window_configuration_change_hook (f); | 4212 | run_window_configuration_change_hook (f); |
| @@ -4476,7 +4477,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, int noerror) | |||
| 4476 | visible. */ | 4477 | visible. */ |
| 4477 | w->vscroll = (it.last_visible_y | 4478 | w->vscroll = (it.last_visible_y |
| 4478 | - it.current_y + it.max_ascent + it.max_descent); | 4479 | - it.current_y + it.max_ascent + it.max_descent); |
| 4479 | adjust_glyphs (it.f); | 4480 | adjust_frame_glyphs (it.f); |
| 4480 | } | 4481 | } |
| 4481 | else | 4482 | else |
| 4482 | { | 4483 | { |
| @@ -5753,7 +5754,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 5753 | ++n; | 5754 | ++n; |
| 5754 | } | 5755 | } |
| 5755 | 5756 | ||
| 5756 | adjust_glyphs (f); | 5757 | adjust_frame_glyphs (f); |
| 5757 | unblock_input (); | 5758 | unblock_input (); |
| 5758 | 5759 | ||
| 5759 | /* Scan dead buffer windows. */ | 5760 | /* Scan dead buffer windows. */ |
| @@ -6082,7 +6083,7 @@ apply_window_adjustment (struct window *w) | |||
| 6082 | clear_glyph_matrix (w->current_matrix); | 6083 | clear_glyph_matrix (w->current_matrix); |
| 6083 | w->window_end_valid = 0; | 6084 | w->window_end_valid = 0; |
| 6084 | windows_or_buffers_changed++; | 6085 | windows_or_buffers_changed++; |
| 6085 | adjust_glyphs (XFRAME (WINDOW_FRAME (w))); | 6086 | adjust_frame_glyphs (XFRAME (WINDOW_FRAME (w))); |
| 6086 | } | 6087 | } |
| 6087 | 6088 | ||
| 6088 | 6089 | ||
| @@ -6348,7 +6349,7 @@ If PIXELS-P is non-nil, the return value is VSCROLL. */) | |||
| 6348 | /* Adjust glyph matrix of the frame if the virtual display | 6349 | /* Adjust glyph matrix of the frame if the virtual display |
| 6349 | area becomes larger than before. */ | 6350 | area becomes larger than before. */ |
| 6350 | if (w->vscroll < 0 && w->vscroll < old_dy) | 6351 | if (w->vscroll < 0 && w->vscroll < old_dy) |
| 6351 | adjust_glyphs (f); | 6352 | adjust_frame_glyphs (f); |
| 6352 | 6353 | ||
| 6353 | /* Prevent redisplay shortcuts. */ | 6354 | /* Prevent redisplay shortcuts. */ |
| 6354 | XBUFFER (w->contents)->prevent_redisplay_optimizations_p = 1; | 6355 | XBUFFER (w->contents)->prevent_redisplay_optimizations_p = 1; |