Subject: Re: bug#21975: 25.0.50; `window-size-change-functions' no longer called when manually resizing a frame

From: martin rudalics <[email-masked]>
Date: Sun, 22 Nov 2015 11:45:02 +0100

> The hook `window-size-change-functions' is not executed when a frame is
 > manually resized.
 >
 > In Emacs 23 it was called, but in Emacs 24 and Emacs 25 it isn't.
 >
 > For example, this break the package Follow mode, its windows are not
 > aligned after the frame has been resized.

If no one objects I intend to install the attached patch on Emacs-25.
Anders please confirm that it fixes the problem.

Thanks, martin
diff --git a/src/frame.c b/src/frame.c
index c388986..5bafc6e 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -518,6 +518,7 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
   if (new_windows_width != old_windows_width)
     {
       resize_frame_windows (f, new_windows_width, 1, 1);
+      FRAME_WINDOW_SIZES_CHANGED (f) = true;

       /* MSDOS frames cannot PRETEND, as they change frame size by
 	 manipulating video hardware.  */
@@ -543,6 +544,7 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
       || WINDOW_TOP_PIXEL_EDGE (r) != FRAME_TOP_MARGIN_HEIGHT (f))
     {
       resize_frame_windows (f, new_windows_height, 0, 1);
+      FRAME_WINDOW_SIZES_CHANGED (f) = true;

       /* MSDOS frames cannot PRETEND, as they change frame size by
 	 manipulating video hardware.  */