[gsettings-desktop-schemas] schemas: Add a way to turn off "PC-style" right-click
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] schemas: Add a way to turn off "PC-style" right-click
- Date: Tue, 17 Mar 2015 15:22:25 +0000 (UTC)
commit 2803f452046b90607bad32dbea487199785823ab
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 13 21:51:25 2015 +0100
schemas: Add a way to turn off "PC-style" right-click
On Macs, there's no physical touchpad buttons, and right clicks are
performed through 2-finger clicks.
On Lenovos (and many other PCs), specific areas of the device are set
aside to act as buttons.
The default configuration for those is to leave it as is the default for
that specific hardware, but allows to remove button areas on PC laptops.
See equivalent, old-style work-around:
https://gist.github.com/hadess/6779414
headers/gdesktop-enums.h | 8 ++++++++
.../org.gnome.desktop.peripherals.gschema.xml.in | 5 +++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index 399bb8c..8386f61 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -178,6 +178,14 @@ typedef enum
typedef enum
{
+ G_DESKTOP_TOUCHPAD_CLICK_METHOD_DEFAULT,
+ G_DESKTOP_TOUCHPAD_CLICK_METHOD_NONE,
+ G_DESKTOP_TOUCHPAD_CLICK_METHOD_AREAS,
+ G_DESKTOP_TOUCHPAD_CLICK_METHOD_FINGERS
+} GDesktopTouchpadClickMethod;
+
+typedef enum
+{
G_DESKTOP_DEVICE_SEND_EVENTS_ENABLED,
G_DESKTOP_DEVICE_SEND_EVENTS_DISABLED,
G_DESKTOP_DEVICE_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE
diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
index 1e8e204..0f12e6a 100644
--- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
+++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
@@ -39,6 +39,11 @@
<summary>Natural scrolling</summary>
<description>Set this to TRUE to enable natural (reverse) scrolling for touchpads.</description>
</key>
+ <key name="click-method" enum="org.gnome.desktop.GDesktopTouchpadClickMethod">
+ <default>'default'</default>
+ <summary>Click method</summary>
+ <description>How to generate software-emulated buttons, either disabled ('none'), through specific
areas ('areas'), number of fingers ('fingers') or left as hardware default ('default').</description>
+ </key>
</schema>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.desktop.peripherals.keyboard"
path="/org/gnome/desktop/peripherals/keyboard/">
<key name="repeat" type="b">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]