SUMMARY Under Wayland session, mouse gestures don't work. STEPS TO REPRODUCE 1. Choose Plasma(Full Wayland) session to log in. 2. Perform any mouse gesture using the right mouse button. OBSERVED RESULT No mouse gesture was performed. EXPECTED RESULT Perform a mouse gesture. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20210502 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2
This is expected. I should hide the UI.
(In reply to David Edmundson from comment #1) > This is expected. I should hide the UI. So is there any plan to bring mouse gestures back for Wayland?
> So is there any plan to bring mouse gestures back for Wayland? Honest question. Talking about consistent workflow. This is a killer feature since not everyone is keyboard-centric. It could really distinguish Plasma from other DEs.
*** This bug has been confirmed by popular vote. ***
https://invent.kde.org/plasma/khotkeys/-/merge_requests/21 This commit hides khotkeys on Wayland.
Here's a Wayfire (Wayland compositor) plugin https://github.com/dkondor/wstroke (a port of easy stroke) that adds mouse gestures, maybe it helps in some way. Tested it on Fedora and it works.
I tried to dig into kwin, and the conclusion is that currently it's almost impossible to implement the feature on Wayland because an effect can't send a mouse event or a key event to the original window, which is the main blocker.
(In reply to Fushan Wen from comment #7) > because an effect can't send a mouse event or a key event to the original window, which is the main blocker. OK, you've got me all confused here. The main purpose of mouse gesture applications is to invoke command on given gesture. The course of events with e.g. EasyStroke is: 1) detect mouse gesture trigger 2) recognize gesture 3) execute the associated shell command The only reason you would want KWin involved is to: 1) detect window below the point where gesture has started (so you could have the ability for different mouse buttons to invoke gestures while over different window classes) 2) input text/"paste" it on the window The first is an excellent feature but it was never implemented in Plasma (X11). The latter is, from my understanding, very hard if not impossible to implement in Wayland. But, given the maturity of Klipper and its further development and the fact that it is not a feature heavily used, it might be as well dropped for now.
The mouse gesture plugin need to send mouse events to the original window to let context menu work, but an effect can't do that.
khotkeys is not available in Plasma 6. Closing this bug...
There is a chance to implement it. See https://discuss.kde.org/t/mouse-gestures-support-on-plasma-6-wayland/5549/1 if you are willing to donate!