From 8f8359597c3dbde838b314505aca9581f263bdc5 Mon Sep 17 00:00:00 2001 From: ARDiDo <90479315+ARDiDo@users.noreply.github.com> Date: Sun, 24 Oct 2021 12:08:30 -0400 Subject: [PATCH] resistance: move to node --- include/config/rcxml.h | 4 +++- src/config/rcxml.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/config/rcxml.h b/include/config/rcxml.h index 7ed21d63..cb4077bd 100644 --- a/include/config/rcxml.h +++ b/include/config/rcxml.h @@ -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; diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 91a5fe73..4ef53153 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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); } }