Backport an upstream addition of a key GNOME Shell 40 alpha expects

This commit is contained in:
Adam Williamson 2020-12-03 08:55:59 -08:00
parent 58303bcb34
commit 5630f7b70b
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 1e58ab07356c4c44b814768fca56e2ce951617d0 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue, 8 Sep 2020 10:21:53 +1000
Subject: [PATCH] schemas: add a scroll button locking to the trackball
Where enabled, the first click of the scroll button sets the button logically
down, the second click sets the button logically up.
This is an accessibility feature, it doesn't require users to keep holding the
button down while scrolling which is hard or impossible for some users.
---
schemas/org.gnome.desktop.peripherals.gschema.xml.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
index 7ee3882..0c30c8a 100644
--- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
+++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
@@ -210,6 +210,11 @@
<range min="0" max="24"/>
<summary>Mouse wheel emulation button. 0 to disable the feature.</summary>
</key>
+ <key name="scroll-wheel-emulation-button-lock" type="b">
+ <default>false</default>
+ <summary>Mouse wheel emulation button lock</summary>
+ <description>Set this to TRUE to enable button locking for the wheel emulation button. If enabled, the first click of the button enables scrolling, the second click disables scrolling again.</description>
+ </key>
<key name="accel-profile" enum="org.gnome.desktop.GDesktopPointerAccelProfile">
<default>'default'</default>
<summary>Acceleration profile</summary>
--
2.29.2

View File

@ -2,7 +2,7 @@
Name: gsettings-desktop-schemas
Version: 3.38.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A collection of GSettings schemas
License: LGPLv2+
@ -10,6 +10,9 @@ License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas
Source0: https://download.gnome.org/sources/%{name}/3.38/%{name}-%{version}.tar.xz
# Adds a new key that GNOME Shell/mutter 40 alpha expect to exist
Patch0: 0001-schemas-add-a-scroll-button-locking-to-the-trackball.patch
BuildRequires: gettext
BuildRequires: glib2-devel >= 2.31.0
BuildRequires: gobject-introspection-devel
@ -71,6 +74,9 @@ glib-compile-schemas --dry-run --strict %{buildroot}%{_datadir}/glib-2.0/schemas
%changelog
* Thu Dec 03 2020 Adam Williamson <awilliam@redhat.com> - 3.38.0-2
- Backport an upstream addition of a key GNOME Shell 40 alpha expects
* Mon Sep 14 2020 Kalev Lember <klember@redhat.com> - 3.38.0-1
- Update to 3.38.0