Variable: display-monitors-changed-functions
display-monitors-changed-functions is a variable defined in
keyboard.c.
Value
nil
Documentation
Abnormal hook run when the monitor configuration changes.
This can happen if a monitor is rotated, moved, plugged in or removed from a multi-monitor setup, if the primary monitor changes, or if the resolution of a monitor changes. The hook should accept a single argument, which is the terminal on which the monitor configuration changed.
Probably introduced at or before Emacs version 29.1.
Source Code
// Defined in /usr/src/emacs/src/keyboard.c
DEFVAR_LISP ("display-monitors-changed-functions", Vdisplay_monitors_changed_functions,
doc: /* Abnormal hook run when the monitor configuration changes.
This can happen if a monitor is rotated, moved, plugged in or removed
from a multi-monitor setup, if the primary monitor changes, or if the
resolution of a monitor changes. The hook should accept a single
argument, which is the terminal on which the monitor configuration
changed. */);