rcxml: Make sure a default libinput category always exists

Previously, if rc.xml defined only non-default libinput categories,
no default category was created. This meant that configure_libinput()
might totally skip configuring some devices even with default
settings, like tap-to-click.

Fix this by making sure that a default category is always created.
This commit is contained in:
John Lindgren 2022-12-22 16:44:08 -05:00 committed by Johan Malm
parent 500eddbe88
commit 41a4176b17
4 changed files with 26 additions and 6 deletions

View file

@ -28,5 +28,6 @@ struct libinput_category {
enum device_type get_device_type(const char *s);
struct libinput_category *libinput_category_create(void);
struct libinput_category *libinput_category_get_default(void);
#endif /* __LABWC_LIBINPUT_H */