mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 12:00:44 -05:00
70cdd72040
Makes sure that monitor specs which may be read from EDID data do not contain characters that are invalid in XML. Makes it possible to restore monitor configs of monitor models with characters such as '&' in them. To make this change not break any tests, the sample monitor configs need to be adjusted as well. Apostrophes don't strictly have to be escaped in XML text elements. However, we now do escape the elements in `<monitorspec>` specifically. Closes: <https://gitlab.gnome.org/GNOME/mutter/-/issues/1011> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1685>
24 lines
500 B
XML
24 lines
500 B
XML
<monitors version="2">
|
|
<configuration>
|
|
<logicalmonitor>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<primary>yes</primary>
|
|
<scale>2</scale>
|
|
<monitor>
|
|
<monitorspec>
|
|
<connector>eDP-1</connector>
|
|
<vendor>MetaProduct's Inc.</vendor>
|
|
<product>MetaMonitor</product>
|
|
<serial>0x123456</serial>
|
|
</monitorspec>
|
|
<mode>
|
|
<width>1920</width>
|
|
<height>1080</height>
|
|
<rate>60.000495910644531</rate>
|
|
</mode>
|
|
</monitor>
|
|
</logicalmonitor>
|
|
</configuration>
|
|
</monitors>
|