summaryrefslogtreecommitdiff
path: root/data/org.gnome.mutter.wayland.gschema.xml.in
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2020-08-12 19:30:04 +0200
committerRobert Mader <robert.mader@posteo.de>2020-08-29 12:20:26 +0200
commit5171e35a9706202ec17f0490762d12f2423c2724 (patch)
treec7271a4861ec950307eff2e2ef547b6f5dbcc0ad /data/org.gnome.mutter.wayland.gschema.xml.in
parente44c42f254a068147c87985d93b12a68f130b1b3 (diff)
downloadmutter-5171e35a9706202ec17f0490762d12f2423c2724.tar.gz
xwayland: Add a setting to disable selected X extensions
The X server, including Xwayland, can be compiled with different X11 extensions enabled at build time. When an X11 extension is built in the X server, it's usually also enabled at run time. Users can chose to disable those extensions at run time using the X server command line option "-extension". However, in the case of Xwayland, it is spawned automatically by the Wayland compositor, and the command line options are not configurable by users. Add a new setting to disable a selected set of X extension in Xwayland at startup, without needing to rebuild Xwayland. Of course, if Xwayland is not built with a given extension support in the first place (which is the default for the security extension for example), that option has no effect. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1405
Diffstat (limited to 'data/org.gnome.mutter.wayland.gschema.xml.in')
-rw-r--r--data/org.gnome.mutter.wayland.gschema.xml.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/data/org.gnome.mutter.wayland.gschema.xml.in b/data/org.gnome.mutter.wayland.gschema.xml.in
index 23ce8386c..b8674b3ac 100644
--- a/data/org.gnome.mutter.wayland.gschema.xml.in
+++ b/data/org.gnome.mutter.wayland.gschema.xml.in
@@ -1,4 +1,10 @@
<schemalist>
+
+ <flags id="org.gnome.mutter.MetaXwaylandDisableExtension">
+ <value nick="Security" value="1"/>
+ <value nick="Xtest" value="2"/>
+ </flags>
+
<schema id="org.gnome.mutter.wayland.keybindings" path="/org/gnome/mutter/wayland/keybindings/"
gettext-domain="@GETTEXT_DOMAIN@">
<key name="switch-to-session-1" type="as">
@@ -104,6 +110,21 @@
</description>
</key>
+ <key name="xwayland-disable-extension"
+ flags='org.gnome.mutter.MetaXwaylandDisableExtension'>
+ <default>["Security"]</default>
+ <summary>Disable selected X extensions in Xwayland</summary>
+ <description>
+ This option disables the selected X extensions in Xwayland if
+ Xwayland was built with support for those X extensions.
+
+ This option has no effect if Xwayland was built without support
+ for the selected extensions.
+
+ Xwayland needs to be restarted for this setting to take effect.
+ </description>
+ </key>
+
</schema>
</schemalist>