Avoid selecting for excessive output configuration events
* src/xterm.c (x_term_init): Only select for RROutputPropertyNotify if GTK is in use. Emacs doesn't need it itself, and output property changes will otherwise lead to 2 second freezes over connections with high network latency.
This commit is contained in:
parent
cb036a79e2
commit
56f3cdef6b
1 changed files with 6 additions and 3 deletions
|
@ -28742,10 +28742,13 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
|
|||
(RRScreenChangeNotifyMask
|
||||
| RRCrtcChangeNotifyMask
|
||||
| RROutputChangeNotifyMask
|
||||
/* Emacs doesn't actually need this, but GTK
|
||||
selects for it when the display is
|
||||
#ifdef USE_GTK
|
||||
/* Emacs doesn't actually need this, but
|
||||
GTK selects for it when the display is
|
||||
initialized. */
|
||||
| RROutputPropertyNotifyMask));
|
||||
| RROutputPropertyNotifyMask
|
||||
#endif
|
||||
));
|
||||
|
||||
dpyinfo->last_monitor_attributes_list
|
||||
= Fx_display_monitor_attributes_list (term);
|
||||
|
|
Loading…
Add table
Reference in a new issue