[enhancement] Support two-finger right click on clickpads

Bug #1481784 reported by Lukáš Tinkl
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Pocket Desktop
Incomplete
Medium
Unassigned
Canonical System Image
Fix Released
Undecided
Unassigned
Mir
Fix Released
Medium
Unassigned
mir (Ubuntu)
Fix Released
Medium
Unassigned
qtmir (Ubuntu)
Invalid
Undecided
Unassigned
unity8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Actual:
Right clicking on a touchpad device produces a regular (left) click

Expected:
The right click should behave the same as on X11, doing the same as a RMB click.

Gerry Boland (gerboland)
tags: added: pd
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

In general Mir's touchpad support is incidental and not really done yet. I think it's coming soon with libinput.

BTW, by "right click" are you using a separate button or two fingers on a clickpad?

Changed in mir:
status: New → Incomplete
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

2-finger click on a clickpad

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Cool, thanks. Technically a two-finger click counts as gesture recognition. So that's probably a separate task for each shell right now.

Changed in mir:
status: Incomplete → New
summary: - right click on touchpad doesn't work
+ [enhancement] Support two-finger right click on clickpads
tags: added: enhancement
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Although we may put common gesture recognition into Mir for all to use. Maybe with libinput. Maybe further after that.

Changed in mir:
importance: Undecided → Medium
Changed in mir (Ubuntu):
importance: Undecided → Medium
Changed in mir:
status: New → Triaged
Changed in mir (Ubuntu):
status: New → Triaged
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

BTW, here's my X config file:

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "Clickpad" "true"
        Option "ClickFinger2" "0" # no action when clicking with 2 fingers
        Option "ClickFinger3" "2" # middle click on 3-finger click
        Option "PalmDetect" "1"
        Option "TapButton2" "0" # no action when tapping with 2 fingers
        Option "TapAndDragGesture" "0" # no tap and drag
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        #Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%" # those are on top of the touchpad
EndSection

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's a little spanner in the works. I was thinking you wanted the more common setting like:
   synclient ClickFinger2=3
which makes two finger clicking the same as Mac, ChromeOS and many Windows machines. I think it's a sane default, although comment #5 suggests you're asking for something totally configurable like the X synaptics driver. That's also reasonable but I would hope in the new world of Mir and Unity8 that we start with providing people a GUI for configuring it all :)

kevin gunn (kgunn72)
Changed in canonical-pocket-desktop:
importance: Undecided → Medium
Revision history for this message
Gerry Boland (gerboland) wrote :

Is Mir's job to interpret such gestures, QtMir just passes the interpreted events to the shell.

Changed in qtmir:
status: New → Invalid
Changed in qtmir (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's an interesting assertion. I'm not saying it's wrong, but it is a major statement of a feature Mir does not have yet and we have not discussed yet.

The road between raw touch events and high-level gestures is well travelled, but I'm not yet sure how far along we want Mir to provide such features. As demonstrated with synclient, it's something people like to configure for themselves too.

If Mir provided the gesture conversion of a two finger click into a right click then at some stage someone would probably ask for a way to disable that feature and get the raw touch data instead.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity8 (Ubuntu):
status: New → Confirmed
tags: added: unity8-desktop
Changed in canonical-devices-system-image:
status: New → Fix Released
Changed in mir:
status: Triaged → Fix Released
Changed in mir (Ubuntu):
status: Triaged → Fix Released
Changed in unity8 (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-pocket-desktop:
status: New → Incomplete
Michał Sawicz (saviq)
no longer affects: qtmir
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.