summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2019-10-16 11:02:56 +0200
committerMartin Rudalics <rudalics@gmx.at>2019-10-16 11:02:56 +0200
commitd68e8495e032890fbfd31935b9f660400641f1d9 (patch)
tree49b9525b093a210bb84c213a78d1971a2fc7d2f6 /src/window.c
parent068b4fce52dce410a9cc1ee22649541a1823c711 (diff)
downloademacs-d68e8495e032890fbfd31935b9f660400641f1d9.tar.gz
Handle top margin change in adjust_frame_size
* src/frame.c (adjust_frame_size): Handle case where only pseudo windows changed height so the top margin has to be adjusted. * src/window.c (Fset_window_configuration): Call adjust_frame_size with inhibit 4.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index ba9af3b9b0c..1e6e148bf48 100644
--- a/src/window.c
+++ b/src/window.c
@@ -7129,10 +7129,11 @@ the return value is nil. Otherwise the value is t. */)
if (NILP (leaf_windows[i]->contents))
free_window_matrices (leaf_windows[i]);
- /* Allow set_window_size_hook again and apply frame size changes
- if needed. */
+ /* Allow set_window_size_hook again and resize frame's windows
+ if necessary. But change frame size only to preserve window
+ minimum sizes. */
f->can_set_window_size = true;
- adjust_frame_size (f, -1, -1, 1, false, Qset_window_configuration);
+ adjust_frame_size (f, -1, -1, 4, false, Qset_window_configuration);
adjust_frame_glyphs (f);
unblock_input ();