gschema: Turn experimental features into flags

Defining valid values makes
1. changing settings less error prone
2. sure they are discoverable.

This does reset the values once on update, but fortunately does *not*
change the way to set the values. Thus e.g. enabling fractional scaling
via terminal command still works as before and internet guides stay valid.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1961>
This commit is contained in:
Robert Mader 2021-08-09 12:07:14 +02:00 committed by Marge Bot
parent 49aa801454
commit 331f08fc40

View File

@ -1,4 +1,13 @@
<schemalist> <schemalist>
<flags id="org.gnome.mutter.MetaExperimentalFeature">
<value nick="scale-monitor-framebuffer" value="1"/>
<value nick="kms-modifiers" value="2"/>
<value nick="rt-scheduler" value="4"/>
<value nick="dma-buf-screen-sharing" value="8"/>
<value nick="autoclose-xwayland" value="16"/>
</flags>
<schema id="org.gnome.mutter" path="/org/gnome/mutter/" <schema id="org.gnome.mutter" path="/org/gnome/mutter/"
gettext-domain="@GETTEXT_DOMAIN@"> gettext-domain="@GETTEXT_DOMAIN@">
@ -102,7 +111,8 @@
</description> </description>
</key> </key>
<key name="experimental-features" type="as"> <key name="experimental-features"
flags='org.gnome.mutter.MetaExperimentalFeature'>
<default>[]</default> <default>[]</default>
<summary>Enable experimental features</summary> <summary>Enable experimental features</summary>
<description> <description>