]> git.eshelyaron.com Git - emacs.git/commit
Add a hook run upon monitor configuration changes
authorPo Lu <luangruo@yahoo.com>
Sat, 21 May 2022 03:17:34 +0000 (11:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 21 May 2022 03:17:34 +0000 (11:17 +0800)
commitedf9700c3ca65d92bdfca59306845ffc0717d690
treeb00568cd7c0875f4ff23c3e6dc613c2d3c25a5b6
parent1cbabe973be88bed5a21d77defc3220034f7c91f
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.
doc/lispref/frames.texi
etc/NEWS
src/keyboard.c
src/termhooks.h
src/xterm.c
src/xterm.h