diff options
| author | Eli Zaretskii | 2015-11-21 13:30:30 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-21 13:30:30 +0200 |
| commit | 3ca44a1ad414c5e5b07f35959ce21f01064476a8 (patch) | |
| tree | 06262c25a7a9f65123d1aa43f48f32111c5ed5a9 /src/window.c | |
| parent | 3858b7949fdf5af8dd94cefc5a2684ad285e2cdf (diff) | |
| download | emacs-3ca44a1ad414c5e5b07f35959ce21f01064476a8.tar.gz emacs-3ca44a1ad414c5e5b07f35959ce21f01064476a8.zip | |
Call 'window-size-change-functions' for mini-windows
* src/window.c (grow_mini_window, shrink_mini_window): Set the
frame's 'window_sizes_changed' flag.
* src/xdisp.c (redisplay_internal): Call the hooks on
'window-size-change-functions' if the call to 'echo_area_display'
sets the frame's 'window_sizes_changed' flag.
(syms_of_xdisp) <window-size-change-functions>:
Update doc string to indicate the mini-window resizes trigger a
call to the hooks, and don't promise that will happen "before
redisplay". (Bug#19576, Bug#21333)
* doc/lispref/windows.texi (Window Hooks): Update the description
of 'window-size-change-functions'.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 0ac76d41861..753c4ab8123 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4555,6 +4555,7 @@ grow_mini_window (struct window *w, int delta, bool pixelwise) | |||
| 4555 | /* Enforce full redisplay of the frame. */ | 4555 | /* Enforce full redisplay of the frame. */ |
| 4556 | /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ | 4556 | /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ |
| 4557 | fset_redisplay (f); | 4557 | fset_redisplay (f); |
| 4558 | FRAME_WINDOW_SIZES_CHANGED (f) = true; | ||
| 4558 | adjust_frame_glyphs (f); | 4559 | adjust_frame_glyphs (f); |
| 4559 | unblock_input (); | 4560 | unblock_input (); |
| 4560 | } | 4561 | } |
| @@ -4594,6 +4595,7 @@ shrink_mini_window (struct window *w, bool pixelwise) | |||
| 4594 | /* Enforce full redisplay of the frame. */ | 4595 | /* Enforce full redisplay of the frame. */ |
| 4595 | /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ | 4596 | /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ |
| 4596 | fset_redisplay (f); | 4597 | fset_redisplay (f); |
| 4598 | FRAME_WINDOW_SIZES_CHANGED (f) = true; | ||
| 4597 | adjust_frame_glyphs (f); | 4599 | adjust_frame_glyphs (f); |
| 4598 | unblock_input (); | 4600 | unblock_input (); |
| 4599 | } | 4601 | } |