aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJohn Wiegley2016-01-02 23:31:52 -0800
committerJohn Wiegley2016-01-02 23:31:52 -0800
commit91917dd58ec5278e555b9c693a830749083e8f89 (patch)
tree3b0c8104106f6dec7873378bccc1273e587f6051 /src/window.c
parentc988877f436bbbb285a0b34f5e037f7758dd6349 (diff)
parent9f2f14a0725211b13a744573344636b57b9c98b9 (diff)
downloademacs-91917dd58ec5278e555b9c693a830749083e8f89.tar.gz
emacs-91917dd58ec5278e555b9c693a830749083e8f89.zip
Merge branch 'emacs-25-merge'
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c34
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)
4064 { 4064 {
4065 window_resize_apply (r, horflag); 4065 window_resize_apply (r, horflag);
4066 window_pixel_to_total (r->frame, horflag ? Qt : Qnil); 4066 window_pixel_to_total (r->frame, horflag ? Qt : Qnil);
4067#if false /* Let's try without safe sizes and/or killing other windows. */
4068 }
4069 else
4070 {
4071 /* Finally, try with "safe" minimum sizes. */
4072 resize_root_window (root, delta, horflag ? Qt : Qnil, Qsafe,
4073 pixelwise ? Qt : Qnil);
4074 if (window_resize_check (r, horflag)
4075 && new_pixel_size == XINT (r->new_pixel))
4076 {
4077 window_resize_apply (r, horflag);
4078 window_pixel_to_total (r->frame, horflag ? Qt : Qnil);
4079 }
4080 else
4081 {
4082 /* We lost. Delete all windows but the frame's
4083 selected one. */
4084 root = f->selected_window;
4085 Fdelete_other_windows_internal (root, Qnil);
4086 if (horflag)
4087 {
4088 XWINDOW (root)->total_cols = new_size;
4089 XWINDOW (root)->pixel_width = new_pixel_size;
4090 }
4091 else
4092 {
4093 XWINDOW (root)->total_lines = new_size;
4094 XWINDOW (root)->pixel_height = new_pixel_size;
4095 }
4096 }
4097#endif /* false */
4098 } 4067 }
4099 } 4068 }
4100 } 4069 }
@@ -4117,6 +4086,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise)
4117 } 4086 }
4118 } 4087 }
4119 4088
4089 FRAME_WINDOW_SIZES_CHANGED (f) = true;
4120 fset_redisplay (f); 4090 fset_redisplay (f);
4121} 4091}
4122 4092
@@ -4555,6 +4525,7 @@ grow_mini_window (struct window *w, int delta, bool pixelwise)
4555 /* Enforce full redisplay of the frame. */ 4525 /* Enforce full redisplay of the frame. */
4556 /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ 4526 /* FIXME: Shouldn't window--resize-root-window-vertically do it? */
4557 fset_redisplay (f); 4527 fset_redisplay (f);
4528 FRAME_WINDOW_SIZES_CHANGED (f) = true;
4558 adjust_frame_glyphs (f); 4529 adjust_frame_glyphs (f);
4559 unblock_input (); 4530 unblock_input ();
4560 } 4531 }
@@ -4594,6 +4565,7 @@ shrink_mini_window (struct window *w, bool pixelwise)
4594 /* Enforce full redisplay of the frame. */ 4565 /* Enforce full redisplay of the frame. */
4595 /* FIXME: Shouldn't window--resize-root-window-vertically do it? */ 4566 /* FIXME: Shouldn't window--resize-root-window-vertically do it? */
4596 fset_redisplay (f); 4567 fset_redisplay (f);
4568 FRAME_WINDOW_SIZES_CHANGED (f) = true;
4597 adjust_frame_glyphs (f); 4569 adjust_frame_glyphs (f);
4598 unblock_input (); 4570 unblock_input ();
4599 } 4571 }