michaelforney / swc

a library for making a simple Wayland compositor
MIT License
614 stars 52 forks source link

libinput configuration #41

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi! What would be the simplest way to set for example pointer acceleration? I guess it wouldn't be possible at this stage to set it in my wm. It would be great if you pointed at place in swc source where user could add libinput_device_config_accel_set_speed() to set it. I'm not sure if it could be seat.c:235:handle_libinput_data()? It's the only place I found instance of struct libinput_device. It would be great if I could set it without having to dig through swc code too much. Thanks.

ghost commented 7 years ago

Never mind. I've managed to do it myself. Here is my pull request #43