https://bugs.kde.org/show_bug.cgi?id=402857

--- Comment #13 from breakingsp...@gmail.com ---
(In reply to Ima S from comment #12)
> I looked at the source, and the gesture seems to be registered by these
> lines:
> 
> https://invent.kde.org/plasma/kwin/-/blob/master/src/virtualdesktops.cpp#L772
> 
> If someone could wrap them with an if-statement that checks a toggle, that
> might be enough? I don't know how to contribute this myself or I would.

Thanks for scoping out where these are! I was looking in the entirely wrong
place (src/gestures.cpp) before giving up last month and falling back to X11
for a few other reasons. 

Did a quick test by just commenting out the hardcoded instances of
registerTouchpadSwipeShortcut() in virtualdesktops.cpp, it does prevent the
gestures from triggering. To note, the 4-finger up-down gestures are defined in
overvieweffect.cpp as addTouchpadSwipeGesture(): 
https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/overview/overvieweffect.cpp#L36

Putting the registers behind a config toggle or dummying out doesn't seem like
the right solution even for short-term though. The code is spread out among
multiple components so it will need to be unified at some point, it'd be worse
later on if they're just patched out here. Would it be possible to bring all
these Touchpad registers into gestures.cpp, and then configure from there?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to