]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: change order
authorJens Peters <jp7677@gmail.com>
Sun, 7 Jan 2024 21:18:06 +0000 (22:18 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 10 Jan 2024 21:10:11 +0000 (21:10 +0000)
More in line with the xml structure.

src/config/rcxml.c

index 335374234d181cd04abdc246fe2df51f4c9d1994..81f72c3cac9ff5d973eded41682139a752ca12ac 100644 (file)
@@ -863,6 +863,8 @@ entry(xmlNode *node, char *nodename, char *content)
                } else {
                        wlr_log(WLR_ERROR, "Invalid value for <resize popupShow />");
                }
+       } else if (!strcasecmp(nodename, "rotate.tablet")) {
+               rc.tablet.rotation = tablet_parse_rotation(atoi(content));
        } else if (!strcasecmp(nodename, "left.area.tablet")) {
                rc.tablet.box.x = tablet_get_dbl_if_positive(content, "left");
        } else if (!strcasecmp(nodename, "top.area.tablet")) {
@@ -871,8 +873,6 @@ entry(xmlNode *node, char *nodename, char *content)
                rc.tablet.box.width = tablet_get_dbl_if_positive(content, "width");
        } else if (!strcasecmp(nodename, "height.area.tablet")) {
                rc.tablet.box.height = tablet_get_dbl_if_positive(content, "height");
-       } else if (!strcasecmp(nodename, "rotate.tablet")) {
-               rc.tablet.rotation = tablet_parse_rotation(atoi(content));
        } else if (!strcasecmp(nodename, "button.map.tablet")) {
                button_map_from = tablet_button_from_str(content);
        } else if (!strcasecmp(nodename, "to.map.tablet")) {