]> git.eshelyaron.com Git - emacs.git/commit
Use GDK for handling monitor changes when built with GTK
authorPo Lu <luangruo@yahoo.com>
Mon, 23 May 2022 01:22:28 +0000 (09:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 23 May 2022 01:29:32 +0000 (09:29 +0800)
commit42e48f788ac6c7934466fe75b19644045594e5dd
tree57f5483a2ad6f02139caf7172d6a6021a0486834
parent73b40d8716f6416f75689d3e2442f365130f45b9
Use GDK for handling monitor changes when built with GTK

* src/xterm.c (x_monitors_changed_cb): New function.
(handle_one_xevent): Don't handle RRNotify and
RRScreenChangeNotify on GTK.
(x_term_init): Connect to GdkScreen::monitors-changed instead of
selecting for RRNotify events.
(mark_xterm): Also mark `last_monitor_attributes_list' on GTK.
* src/xterm.h (struct x_display_info): Enable
`last_monitor_attributes_list' on GTK builds as well.
src/xterm.c
src/xterm.h