mirror of
https://github.com/brl/mutter.git
synced 2025-02-04 07:34:09 +00:00
Rui Matos
82bdd1e353
monitor-manager: Fix the max potential number of logical monitors
The max potential number of logical monitors (i.e. MetaMonitorInfos) is the number of CRTCs, not the number of outputs. In cases where we have more enabled CRTCs than connected outputs we would end up appending more MetaMonitorInfos to the GArray than the size it was initialized with which means the array would get re-allocated rendering invalid some MetaCRTC->logical_monitor pointers assigned previously and thus ending in crashes later on. https://bugzilla.gnome.org/show_bug.cgi?id=751638
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%