]> git.eshelyaron.com Git - emacs.git/commit
Make adjust_frame_size set up frame's new_width/_height too (Bug#17120)
authorMartin Rudalics <rudalics@gmx.at>
Sun, 2 May 2021 08:33:22 +0000 (10:33 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 2 May 2021 08:33:22 +0000 (10:33 +0200)
commit8a4081c396a47aa7593a6c25b1bad8a2b8b157b7
treea168f59cdce067276e2abbade1e7c8f2b1c951ee
parenteda4888e54a278226c51a2491594e8703c105d21
Make adjust_frame_size set up frame's new_width/_height too (Bug#17120)

The purpose of this change is to have implied frame size changes
pick up sizes requested by previous explicit size changes not
only after they have been confirmed by the WM but already when
they are initially passed to adjust_frame_size (Bug#17120).

* src/dispextern.h (delayed_size_change): Remove extern.
* src/dispnew.c (delayed_size_change): Make static again.
(do_pending_window_change): Call change_frame_size only if F's
new_size_p flag is set.
(change_frame_size_1): Set/reset F's new_size_p flag
* src/frame.c (adjust_frame_size): Remove extra
inhibit_horizontal/_vertical checks.  Improve the implied
resizes check with INHIBIT equals 2.  Set F's new_width and
new_height and reset F's new_size_p flag when we run
set_window_size_hook with INHIBIT 0 or 1.
* src/frame.h (struct frame): New bit slot new_size_p.
* src/gtkutil.c (xg_frame_resized): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
(xg_frame_set_char_size): Call frame_size_history_extra before
waiting for the ConfigureNotify event.
* src/xterm.c (handle_one_xevent): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
src/dispextern.h
src/dispnew.c
src/frame.c
src/frame.h
src/gtkutil.c
src/xterm.c