Bug 392420

Summary: Mouse gestures don't respect "left-handed" mouse option when no gesture was performed
Product: [Applications] systemsettings Reporter: Aleksey Gavrilov <hxkafg>
Component: kcm_khotkeysAssignee: Michael Jansen <kde>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: qydwhotmail
Priority: NOR    
Version First Reported In: 5.20.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Aleksey Gavrilov 2018-03-27 17:14:07 UTC
I have the left-handed option (which swaps left and right mouse buttons) enabled.

I also have mouse gestures enabled on button 3 (right button before swap)

In windows for which no gestures are configured, mouse clicks behave as expected (right butto sends left click to the window and vice versa).

In windows for which gestures are configured, pressing right button sends left mouse click to the window, as expected. Pressing left button initiates gesture recognition, as expected. However, pressing left button and immediately releasing it, such that no gesture is performed, sends left click to the window instead of right click.
Comment 1 Fushan Wen 2021-11-03 14:13:53 UTC
In https://invent.kde.org/plasma/khotkeys/-/blob/master/libkhotkeysprivate/triggers/gestures.cpp

void Gesture::mouse_replay(bool release_P)
{
    bool was_enabled = _enabled;
    enable(false);
    Mouse::send_mouse_button(button, release_P);
    enable(was_enabled);
}

It seems mouse_replay doesn't consider left-handed option.
Comment 2 Fushan Wen 2021-11-05 07:30:50 UTC
Can you still reproduce the bug on 5.23?
Comment 3 Aleksey Gavrilov 2021-11-06 08:12:11 UTC
No, seems to work correctly now.
Comment 4 Bug Janitor Service 2021-11-21 04:40:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Nate Graham 2024-03-04 19:42:11 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.