diff options
author | John Wiegley <johnw@newartisans.com> | 2015-12-29 21:39:08 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2015-12-29 21:39:08 -0800 |
commit | ec0a80cc283badc7f7fd5ef78512dde6d34b1355 (patch) | |
tree | 7190e0fb3d4aa06018d8cf997f06b806fb09a9c8 /src/window.c | |
parent | d259328fb87db8cc67d52771efcfa653e52c5b71 (diff) | |
parent | e823c34072bf045800d91e12c7ddb61fa23c6e30 (diff) | |
download | emacs-25-merge.tar.gz |
Merge emacs-25 into master (using imerge)emacs-25-merge
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/src/window.c b/src/window.c index 0ac76d41861..9f6b489e74a 100644 --- a/src/window.c +++ b/src/window.c @@ -4064,37 +4064,6 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) { window_resize_apply (r, horflag); window_pixel_to_total (r->frame, horflag ? Qt : Qnil); -#if false /* Let's try without safe sizes and/or killing other windows. */ - } - else - { - /* Finally, try with "safe" minimum sizes. */ - resize_root_window (root, delta, horflag ? Qt : Qnil, Qsafe, - pixelwise ? Qt : Qnil); - if (window_resize_check (r, horflag) - && new_pixel_size == XINT (r->new_pixel)) - { - window_resize_apply (r, horflag); - window_pixel_to_total (r->frame, horflag ? Qt : Qnil); - } - else - { - /* We lost. Delete all windows but the frame's - selected one. */ - root = f->selected_window; - Fdelete_other_windows_internal (root, Qnil); - if (horflag) - { - XWINDOW (root)->total_cols = new_size; - XWINDOW (root)->pixel_width = new_pixel_size; - } - else - { - XWINDOW (root)->total_lines = new_size; - XWINDOW (root)->pixel_height = new_pixel_size; - } - } -#endif /* false */ } } } @@ -4117,6 +4086,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) } } + FRAME_WINDOW_SIZES_CHANGED (f) = true; fset_redisplay (f); } @@ -4555,6 +4525,7 @@ grow_mini_window (struct window *w, int delta, bool pixelwise) /* Enforce full redisplay of the frame. */ /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ fset_redisplay (f); + FRAME_WINDOW_SIZES_CHANGED (f) = true; adjust_frame_glyphs (f); unblock_input (); } @@ -4594,6 +4565,7 @@ shrink_mini_window (struct window *w, bool pixelwise) /* Enforce full redisplay of the frame. */ /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ fset_redisplay (f); + FRAME_WINDOW_SIZES_CHANGED (f) = true; adjust_frame_glyphs (f); unblock_input (); } |