frame-can-run-window-configuration-change-hook

frame-can-run-window-configuration-change-hook is a built-in function in `C source code'.

(frame-can-run-window-configuration-change-hook FRAME ALLOW)

Whether `window-configuration-change-hook' is run for frame FRAME.
FRAME nil means use the selected frame. Second argument ALLOW non-nil
means functions on `window-configuration-change-hook' are called
whenever the window configuration of FRAME changes. ALLOW nil means
these functions are not called.

This function is currently called by `face-set-after-frame-default' only
and should be otherwise used with utter care to avoid that running
functions on `window-configuration-change-hook' is impeded forever.