]> git.mdlowis.com Git - proto/labwc.git/commitdiff
rcxml: allow empty values in <libinput>
authortokyo4j <hrak1529@gmail.com>
Tue, 19 Aug 2025 05:13:35 +0000 (14:13 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 19 Aug 2025 08:18:08 +0000 (17:18 +0900)
This restores the old behavior prior to a0d2e6a6.

src/config/rcxml.c

index b913f0c46059a387a41776d0fcd24eb89b1d1086..48d2181659d246ab7af213b56669501e030c2f4b 100644 (file)
@@ -723,6 +723,9 @@ fill_libinput_category(xmlNode *node)
        xmlNode *child;
        char *key, *content;
        LAB_XML_FOR_EACH(node, child, key, content) {
+               if (string_null_or_empty(content)) {
+                       continue;
+               }
                if (!strcmp(key, "category")) {
                        /*
                         * First we try to get a type based on a number of