> What should I be testing exactly?
In window.el remove the
;; Remove the following call in Emacs 27, running
;; 'window-size-change-functions' should suffice.
(add-hook 'window-configuration-change-hook 'window--adjust-process-windows)
lines as in the attached patch.
martin