diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-03-16 09:33:17 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-03-18 09:15:40 +1000 |
commit | 8d4e03570cbdbb53bae57452614cbe45b6eb46f8 (patch) | |
tree | 8456c65ccfd59c84a68c17fa1fa81fe255885393 /include | |
parent | 0c5620a29c6f08b824457f5e6ce3c4e25c1c136e (diff) |
Add "libinput something Default" properties
A client or xorg.conf setting may change the property but once changed it
cannot be reset by a client to the original state without knowledge about the
device.
Export the various libinput_...get_default() functions as properties.
https://bugs.freedesktop.org/show_bug.cgi?id=89574
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libinput-properties.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/libinput-properties.h b/include/libinput-properties.h index 1d7b416..8947126 100644 --- a/include/libinput-properties.h +++ b/include/libinput-properties.h @@ -27,15 +27,27 @@ /* Tapping enabled/disabled: BOOL, 1 value */ #define LIBINPUT_PROP_TAP "libinput Tapping Enabled" +/* Tapping default enabled/disabled: BOOL, 1 value, read-only */ +#define LIBINPUT_PROP_TAP_DEFAULT "libinput Tapping Enabled Default" + /* Calibration matrix: FLOAT, 9 values of a 3x3 matrix, in rows */ #define LIBINPUT_PROP_CALIBRATION "libinput Calibration Matrix" +/* Calibration matrix: FLOAT, 9 values of a 3x3 matrix, in rows, read-only*/ +#define LIBINPUT_PROP_CALIBRATION_DEFAULT "libinput Calibration Matrix Default" + /* Pointer accel speed: FLOAT, 1 value, 32 bit */ #define LIBINPUT_PROP_ACCEL "libinput Accel Speed" +/* Pointer accel speed: FLOAT, 1 value, 32 bit, read-only*/ +#define LIBINPUT_PROP_ACCEL_DEFAULT "libinput Accel Speed Default" + /* Natural scrolling: BOOL, 1 value */ #define LIBINPUT_PROP_NATURAL_SCROLL "libinput Natural Scrolling Enabled" +/* Natural scrolling: BOOL, 1 value, read-only */ +#define LIBINPUT_PROP_NATURAL_SCROLL_DEFAULT "libinput Natural Scrolling Enabled Default" + /* Send-events mode: BOOL read-only, 2 values in order disabled, disabled-on-external-mouse */ #define LIBINPUT_PROP_SENDEVENTS_AVAILABLE "libinput Send Events Modes Available" @@ -44,9 +56,16 @@ disabled-on-external-mouse */ #define LIBINPUT_PROP_SENDEVENTS_ENABLED "libinput Send Events Mode Enabled" +/* Send-events mode: BOOL, 2 values in order disabled, + disabled-on-external-mouse, read-only */ +#define LIBINPUT_PROP_SENDEVENTS_ENABLED_DEFAULT "libinput Send Events Mode Enabled Default" + /* Left-handed enabled/disabled: BOOL, 1 value */ #define LIBINPUT_PROP_LEFT_HANDED "libinput Left Handed Enabled" +/* Left-handed enabled/disabled: BOOL, 1 value, read-only */ +#define LIBINPUT_PROP_LEFT_HANDED_DEFAULT "libinput Left Handed Enabled Default" + /* Scroll method: BOOL read-only, 3 values in order 2fg, edge, button. shows available scroll methods */ #define LIBINPUT_PROP_SCROLL_METHODS_AVAILABLE "libinput Scroll Methods Available" @@ -55,9 +74,16 @@ only one is enabled at a time at max */ #define LIBINPUT_PROP_SCROLL_METHOD_ENABLED "libinput Scroll Method Enabled" +/* Scroll method: BOOL, 3 values in order 2fg, edge, button + only one is enabled at a time at max, read-only */ +#define LIBINPUT_PROP_SCROLL_METHOD_ENABLED_DEFAULT "libinput Scroll Method Enabled Default" + /* Scroll button for button scrolling: 32-bit int, 1 value */ #define LIBINPUT_PROP_SCROLL_BUTTON "libinput Button Scrolling Button" +/* Scroll button for button scrolling: 32-bit int, 1 value, read-only */ +#define LIBINPUT_PROP_SCROLL_BUTTON_DEFAULT "libinput Button Scrolling Button Default" + /* Click method: BOOL read-only, 2 values in order buttonareas, clickfinger shows available click methods */ #define LIBINPUT_PROP_CLICK_METHODS_AVAILABLE "libinput Click Methods Available" @@ -66,4 +92,7 @@ only one enabled at a time at max */ #define LIBINPUT_PROP_CLICK_METHOD_ENABLED "libinput Click Method Enabled" +/* Click method: BOOL, 2 values in order buttonareas, clickfinger + only one enabled at a time at max, read-only */ +#define LIBINPUT_PROP_CLICK_METHOD_ENABLED_DEFAULT "libinput Click Method Enabled Default" #endif /* _LIBINPUT_PROPERTIES_H_ */ |