Closed ghost closed 7 years ago
Why this should be implemented in widow mangager? You can't add/remove touchpad on the fly.
It's purpose is to be able to setup input devices from window manager.
"New" devices are also detected when you start your wm, they're set up on startup. And libinput handles all input devices except keyboards (on my computer it detects power switch, rf kill switch, etc.).
BTW of course you can add/remove touchpad(s) on the fly, as well as mice and other peripherals.
I squashed the two commits and moved the forward struct declaration to within the extern "C"
. Thanks!
Adds another optional callback to swc_manager, which is called when libinput detects new device. It's purpose is to be able to setup input devices from window manager.
Example: part of code from window manager which will set accel speed of touchpad