diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-03-10 09:07:59 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-04-30 12:53:59 +1000 |
commit | 1e08fbf8a71b5958ac1765c889b5101e62fad20f (patch) | |
tree | c83d2205f5eadf137fe5b348ac42e78258de93b7 /src/synaptics.c | |
parent | eb3af31c597ed6dc1bef31f39a5f6c9d586713ae (diff) |
Add property support for secondary (top) software buttons
This was originally intended as a fixed xorg.conf option only (and still
largely is seen as such). Secondary software button are required only on a specific series
of touchpads and should be pre-configured by the system and/or the
distribution. As such, the property will not be initialized if it is not set
in the xorg.conf and will thus not respond to runtime changes.
Exposing the property in this way gives clients a chance of detecting if a top
software button area is present and thus adjust their behaviour accordingly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 66240dc329683f0141c1e11590ea2c3d8ca25788)
Diffstat (limited to 'src/synaptics.c')
-rw-r--r-- | src/synaptics.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index a8abdb2..4b74f7c 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -89,22 +89,6 @@ enum EdgeType { LEFT_TOP_EDGE = TOP_EDGE | LEFT_EDGE }; -enum SoftButtonAreas { - BOTTOM_BUTTON_AREA = 0, - BOTTOM_RIGHT_BUTTON_AREA = 0, - BOTTOM_MIDDLE_BUTTON_AREA = 1, - TOP_BUTTON_AREA = 2, - TOP_RIGHT_BUTTON_AREA = 2, - TOP_MIDDLE_BUTTON_AREA = 3 -}; - -enum SoftButtonAreaEdges { - LEFT = 0, - RIGHT = 1, - TOP = 2, - BOTTOM = 3 -}; - /* * We expect to be receiving a steady 80 packets/sec (which gives 40 * reports/sec with more than one finger on the pad, as Advanced Gesture Mode |