diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2017-09-01 13:53:18 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2017-12-18 13:15:17 +0100 |
commit | 519a0fd93d4ff9e825a7318709ec27f7642b1873 (patch) | |
tree | 5060b7b2ba7f6f35bff06d0430f19cbf9fef32f1 /data | |
parent | 5f132f39750f684c3732b4346dec810cd218d609 (diff) | |
download | mutter-519a0fd93d4ff9e825a7318709ec27f7642b1873.tar.gz |
settings: Add xwayland grab settings
Add new settings to control which X11 windows are allowed to
issue Xwayland grabs.
https://bugzilla.gnome.org/show_bug.cgi?id=783342
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 1 | ||||
-rw-r--r-- | data/org.gnome.mutter.wayland.gschema.xml.in | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 5129b8e57..4a8ff6f67 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -24,6 +24,7 @@ gsettings_SCHEMAS = $(gschema_in_files:.xml.in=.xml) %.gschema.xml: %.gschema.xml.in Makefile $(AM_V_GEN) sed -e 's|@GETTEXT_DOMAIN[@]|$(GETTEXT_PACKAGE)|g' \ + -e 's|@XWAYLAND_GRAB_DEFAULT_ACCESS_RULES[@]|$(XWAYLAND_GRAB_DEFAULT_ACCESS_RULES)|g' \ $< > $@ || rm $@ @GSETTINGS_RULES@ diff --git a/data/org.gnome.mutter.wayland.gschema.xml.in b/data/org.gnome.mutter.wayland.gschema.xml.in index f85e7b7ab..33b691f1d 100644 --- a/data/org.gnome.mutter.wayland.gschema.xml.in +++ b/data/org.gnome.mutter.wayland.gschema.xml.in @@ -54,4 +54,48 @@ <summary>Re-enable shortcuts</summary> </key> </schema> + + + <schema id="org.gnome.mutter.wayland" path="/org/gnome/mutter/wayland/" + gettext-domain="@GETTEXT_DOMAIN@"> + + <key name="xwayland-allow-grabs" type="b"> + <default>false</default> + <summary>Allow grabs with Xwayland</summary> + <description> + Allow keyboard grabs issued by X11 applications running in Xwayland + to be taken into account. + + For a X11 grab to be taken into account under Wayland, the client must + also either send a specific X11 ClientMessage to the root window or be + among the applications white-listed in key “xwayland-grab-access-rules“. + </description> + </key> + + <key name="xwayland-grab-access-rules" type="as"> + <default>[]</default> + <summary>Xwayland applications allowed to issue keyboard grabs</summary> + <description> + List the resource names or resource class of X11 windows either + allowed or not allowed to issue X11 keyboard grabs under Xwayland. + + The resource name or resource class of a given X11 window can be + obtained using the command “xprop WM_CLASS“. + + Wildcards '*' and jokers '?' in the values are supported. + + Values starting with '!' are blacklisted, which has precedence over + the whitelist, to revoke applications from the default system list. + + The default system list includes the following applications: + + “@XWAYLAND_GRAB_DEFAULT_ACCESS_RULES@“ + + Users can break an existing grab by using the specific keyboard + short-cut defined by the keybinding key “restore-shortcuts“. + </description> + </key> + + </schema> + </schemalist> |