Created attachment 70116 [details] low limit = 1, high limit = 10 issue 1: on many touch enabled surfaces your finger acts as button 1 but the low limit of 2 prohibits gestures. issue 2: UI allows high limit of 10 but config file allows only 9.
I have applied your patch to khotkeys-4.8.1 and still can't use button 10 on my Logitech Perfomance MX mouse. Output of xev when pressing it: ButtonPress event, serial 36, synthetic NO, window 0x3800001, root 0x161, subw 0x0, time 49057027, (137,130), root:(1173,907), state 0x10, button 10, same_screen YES ButtonRelease event, serial 36, synthetic NO, window 0x3800001, root 0x161, subw 0x0, time 49057189, (137,130), root:(1173,907), state 0x10, button 10, same_screen YES I can use it as b:10 with xbindkeys. Part of my khotkeysrc: [Gestures] Disabled=false MouseButton=10 Timeout=603 By the way, I also have mouse button with number 13. I have corrected high limit to 13 in both files. It doesn't work also. Mouse button 1 works good as gestures button after applying your patch.
*** Bug 361406 has been marked as a duplicate of this bug. ***
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.