]> git.mdlowis.com Git - proto/labwc.git/commitdiff
resistance: move to <resistance> node
authorARDiDo <90479315+ARDiDo@users.noreply.github.com>
Sun, 24 Oct 2021 16:08:30 +0000 (12:08 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 26 Oct 2021 20:15:13 +0000 (21:15 +0100)
include/config/rcxml.h
src/config/rcxml.c

index 7ed21d63320ea9381a77b54b91493de9c20b71df..cb4077bd95e1419157aa9ed2ec4378c6d6987767 100644 (file)
@@ -14,7 +14,6 @@ struct rcxml {
        bool xdg_shell_server_side_deco;
        int gap;
        bool adaptive_sync;
-       int screen_edge_strength;
 
        /* focus */
        bool focus_follow_mouse;
@@ -39,6 +38,9 @@ struct rcxml {
 
        /* libinput */
        struct wl_list libinput_categories;
+
+       /* resistance */
+       int screen_edge_strength;
 };
 
 extern struct rcxml rc;
index 91a5fe73d0aa8d0738e8f3cf0df9bcb992155e45..4ef5315356a5ae00ed25ff1f4c6d2a14b1c1f689 100644 (file)
@@ -322,7 +322,7 @@ entry(xmlNode *node, char *nodename, char *content)
                rc.repeat_rate = atoi(content);
        } else if (!strcasecmp(nodename, "repeatDelay.keyboard")) {
                rc.repeat_delay = atoi(content);
-       } else if (!strcasecmp(nodename, "screenEdgeStrength.core")) {
+       } else if (!strcasecmp(nodename, "screenEdgeStrength.resistance")) {
                rc.screen_edge_strength = atoi(content);
        }
 }