tl;dr I'm looking for way to detect when an Emacs frame has been moved from one monitor to another in a multi-monitor setup.
I have code in my ~/.emacs
which sets the default font size for all displayed buffers in a frame based on the physical size and resolution of the monitor hosting the Emacs frame. In a multi-monitor setup, I would like to execute the font-sizing logic when a frame is moved from one monitor to another with possibly different rez + physical dimensions.
I've not found a way to do this in stock Emacs (have been looking mostly at available hooks) nor have I found any community code which might, say, add a hook for monitor change events.
emacsclient
and evaluate some elisp when it notices a monitor change?