mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
; Safer 'x-display-monitor-attributes-list'
* src/xfns.c (Fx_display_monitor_attributes_list): Don't access more elements in monitor_frames than there are monitors reported by 'gdk_display_get_n_monitors' or 'gdk_screen_get_n_monitors'. (Bug#79941)
This commit is contained in:
parent
aa352804af
commit
f1b3343e3d
1 changed files with 2 additions and 1 deletions
|
|
@ -6648,7 +6648,8 @@ Internal use only, use `display-monitor-attributes-list' instead. */)
|
|||
#else
|
||||
i = gdk_screen_get_monitor_at_window (gscreen, gwin);
|
||||
#endif
|
||||
ASET (monitor_frames, i, Fcons (frame, AREF (monitor_frames, i)));
|
||||
if (0 <= i && i < n_monitors)
|
||||
ASET (monitor_frames, i, Fcons (frame, AREF (monitor_frames, i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue