aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/frames.texi
diff options
context:
space:
mode:
authorPo Lu2022-05-21 11:17:34 +0800
committerPo Lu2022-05-21 11:17:34 +0800
commitedf9700c3ca65d92bdfca59306845ffc0717d690 (patch)
treeb00568cd7c0875f4ff23c3e6dc613c2d3c25a5b6 /doc/lispref/frames.texi
parent1cbabe973be88bed5a21d77defc3220034f7c91f (diff)
downloademacs-edf9700c3ca65d92bdfca59306845ffc0717d690.tar.gz
emacs-edf9700c3ca65d92bdfca59306845ffc0717d690.zip
Add a hook run upon monitor configuration changes
* doc/lispref/frames.texi (Multiple Terminals): Document new hook `display-monitors-changed-functions'. * etc/NEWS: Announce new abnormal hook. * src/keyboard.c (kbd_buffer_get_event): Handle MONITORS_CHANGED_EVENT. (syms_of_keyboard): New hook and defsyms. * src/termhooks.h (enum event_kind): Add new event `MONITORS_CHANGED_EVENT'. * src/xterm.c (handle_one_xevent): Handle RRNotify and RRScreenChangeNotify events. (x_term_init): Select for RRScreenChange, RRCrtcChange and RROutputChange. * src/xterm.h (struct x_display_info): Improve RandR version detection.
Diffstat (limited to 'doc/lispref/frames.texi')
-rw-r--r--doc/lispref/frames.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 5ea060871f4..7d600b5a0c5 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -458,6 +458,16 @@ monitor, the same string as returned by the function
458@var{display} should be the name of an X display (a string). 458@var{display} should be the name of an X display (a string).
459@end deffn 459@end deffn
460 460
461@cindex monitor change functions
462@defvar display-monitors-changed-functions
463This variable is an abnormal hook run when the monitor configuration
464changes, which can happen if a monitor is rotated, moved, added or
465removed from a multiple-monitor setup, if the primary monitor changes,
466or if the resolution of a monitor changes. It is called with a single
467argument consisting of the terminal on which the monitor configuration
468changed.
469@end defvar
470
461@node Frame Geometry 471@node Frame Geometry
462@section Frame Geometry 472@section Frame Geometry
463@cindex frame geometry 473@cindex frame geometry