diff options
| author | K. Handa | 2016-01-03 17:53:43 +0900 |
|---|---|---|
| committer | K. Handa | 2016-01-03 17:53:43 +0900 |
| commit | fb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch) | |
| tree | b9ce862d6cbe25e740203421984df21e4cbadbf4 /src/window.c | |
| parent | 536f48e9a2251b9e654ea974bd90ff2f40218753 (diff) | |
| parent | 91917dd58ec5278e555b9c693a830749083e8f89 (diff) | |
| download | emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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) | |||
| 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 | } |