diff options
| author | Po Lu | 2022-05-21 11:17:34 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-21 11:17:34 +0800 |
| commit | edf9700c3ca65d92bdfca59306845ffc0717d690 (patch) | |
| tree | b00568cd7c0875f4ff23c3e6dc613c2d3c25a5b6 /doc/lispref/frames.texi | |
| parent | 1cbabe973be88bed5a21d77defc3220034f7c91f (diff) | |
| download | emacs-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.texi | 10 |
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 | ||
| 463 | This variable is an abnormal hook run when the monitor configuration | ||
| 464 | changes, which can happen if a monitor is rotated, moved, added or | ||
| 465 | removed from a multiple-monitor setup, if the primary monitor changes, | ||
| 466 | or if the resolution of a monitor changes. It is called with a single | ||
| 467 | argument consisting of the terminal on which the monitor configuration | ||
| 468 | changed. | ||
| 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 |