mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 00:50:42 -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>
48 lines
1.0 KiB
XML
48 lines
1.0 KiB
XML
<monitors version="2">
|
|
<configuration>
|
|
<logicalmonitor>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<primary>yes</primary>
|
|
<transform>
|
|
<rotation>right</rotation>
|
|
<flipped>no</flipped>
|
|
</transform>
|
|
<monitor>
|
|
<monitorspec>
|
|
<connector>DP-1</connector>
|
|
<vendor>MetaProduct's Inc.</vendor>
|
|
<product>MetaMonitor</product>
|
|
<serial>0x123456</serial>
|
|
</monitorspec>
|
|
<mode>
|
|
<width>1024</width>
|
|
<height>768</height>
|
|
<rate>60.000495910644531</rate>
|
|
</mode>
|
|
</monitor>
|
|
</logicalmonitor>
|
|
<logicalmonitor>
|
|
<x>768</x>
|
|
<y>0</y>
|
|
<transform>
|
|
<rotation>normal</rotation>
|
|
<flipped>no</flipped>
|
|
</transform>
|
|
<monitor>
|
|
<monitorspec>
|
|
<connector>DP-2</connector>
|
|
<vendor>MetaProduct's Inc.</vendor>
|
|
<product>MetaMonitor</product>
|
|
<serial>0x123456</serial>
|
|
</monitorspec>
|
|
<mode>
|
|
<width>1024</width>
|
|
<height>768</height>
|
|
<rate>60.000495910644531</rate>
|
|
</mode>
|
|
</monitor>
|
|
</logicalmonitor>
|
|
</configuration>
|
|
</monitors>
|