From 84fcb9988488ef879e872e8e28608afe9973987c Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 1 Jan 2024 17:08:20 +0000 Subject: [PATCH] config: allow without category attribute ...to define a 'default' profile because that is likely to be more user-friendly. --- src/config/rcxml.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/rcxml.c b/src/config/rcxml.c index c57352a4..9523e0e7 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -445,7 +445,12 @@ get_accel_profile(const char *s) static void fill_libinput_category(char *nodename, char *content) { - if (!strcmp(nodename, "category.device.libinput")) { + /* + * Create a new profile (libinput-category) on `` + * so that the 'default' profile can be created without even providing a + * category="" attribute (same as ...) + */ + if (!strcmp(nodename, "device.libinput")) { current_libinput_category = libinput_category_create(); }