https://bugs.kde.org/show_bug.cgi?id=415364
--- Comment #32 from Jakob Petsovits <jpe...@petsovits.com> --- Git commit a59c9e97f09a699423a19e2257fbf59c3027eb49 by Jakob Petsovits. Committed on 20/12/2024 at 20:42. Pushed by jpetso into branch 'master'. libinput: Support disableEventsOnExternalMouse for touchpads The third "Send Events Mode" for a libinput device, in addition to "enabled" and "disabled" modes, was previously only hinted at through a `supportsDisableEventsOnExternalMouse` property. It couldn't be queried or set though. This commit adds a new property, `disableEventsOnExternalMouse` as well as a corresponding `disableWhileTypingEnabledByDefault`, to KWin's InputDevice D-Bus interface. The libinput API allows passing both kinds of "disabled" modes as bitmask (although with uncertain outcomes if combining with the "enabled" bit) and its X11 property access API features the same two booleans. Given this, as well as the pre-existing `supportsDisableEventsOnExternalMouse` property, it makes sense to expose the new option as separate boolean, independent from the `enabled` property except perhaps on the initial read. `enabled` will remain true while the new boolean is set, and also when connecting an external mouse actually disables the device. M +95 -8 autotests/libinput/device_test.cpp M +10 -7 autotests/libinput/mock_libinput.cpp M +1 -0 autotests/libinput/mock_libinput.h M +38 -2 src/backends/libinput/device.cpp M +14 -0 src/backends/libinput/device.h https://invent.kde.org/plasma/kwin/-/commit/a59c9e97f09a699423a19e2257fbf59c3027eb49 -- You are receiving this mail because: You are watching all bug changes.