I think the problem is the call to do_pending_window_change in xg_frame_resized in gtkutil.c: the commit message (commit 3477e27021db) says:
Author: Martin Rudalics <
rudalics@gmx.at>
AuthorDate: Sun Jul 27 15:21:30 2014 +0200
Commit: Martin Rudalics <
rudalics@gmx.at>
CommitDate: Sun Jul 27 15:21:30 2014 +0200
Complete pixelwise frame/window resizing, add horizontal scrollbar support.
[...]
* gtkutil.c (xg_frame_resized): Don't call
do_pending_window_change.
but the diff is:
@@ -883,6 +884,8 @@ xg_frame_resized (struct frame *f, int pixelwidth, int pixelheight)
change_frame_size (f, width, height, 0, 1, 0, 1);
SET_FRAME_GARBAGED (f);
cancel_mouse_face (f);
+
+ do_pending_window_change (0);
}
}
And my current understanding is this bug would not occur if that call were removed. The same issue applies to the change to x_set_window_size, but I'm not certain about removing either call.