diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 9da77ffc972..14b3364477e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7176,6 +7176,11 @@ set_window_fringes (struct window *w, Lisp_Object left_width, | |||
| 7176 | w->right_fringe_width = right; | 7176 | w->right_fringe_width = right; |
| 7177 | w->fringes_outside_margins = outside; | 7177 | w->fringes_outside_margins = outside; |
| 7178 | 7178 | ||
| 7179 | /* This is needed to trigger immediate redisplay of the window | ||
| 7180 | when its fringes are changed, because fringes are redrawn | ||
| 7181 | only if update_window is called, so we must trigger that even | ||
| 7182 | if the window's glyph matrices did not change at all. */ | ||
| 7183 | windows_or_buffers_changed = 35; | ||
| 7179 | return w; | 7184 | return w; |
| 7180 | } | 7185 | } |
| 7181 | else | 7186 | else |
| @@ -7293,6 +7298,12 @@ set_window_scroll_bars (struct window *w, Lisp_Object width, | |||
| 7293 | wset_horizontal_scroll_bar_type (w, Qnil); | 7298 | wset_horizontal_scroll_bar_type (w, Qnil); |
| 7294 | #endif | 7299 | #endif |
| 7295 | 7300 | ||
| 7301 | /* This is needed to trigger immediate redisplay of the window when | ||
| 7302 | scroll bars are changed, because scroll bars are redisplayed only | ||
| 7303 | if more than a single window needs to be considered, see | ||
| 7304 | redisplay_internal. */ | ||
| 7305 | if (changed) | ||
| 7306 | windows_or_buffers_changed = 31; | ||
| 7296 | return changed ? w : NULL; | 7307 | return changed ? w : NULL; |
| 7297 | } | 7308 | } |
| 7298 | 7309 | ||