resistance: move to <resistance> node

This commit is contained in:
ARDiDo 2021-10-24 12:08:30 -04:00 committed by Johan Malm
parent ac58ab10a7
commit 8f8359597c
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,6 @@ struct rcxml {
bool xdg_shell_server_side_deco; bool xdg_shell_server_side_deco;
int gap; int gap;
bool adaptive_sync; bool adaptive_sync;
int screen_edge_strength;
/* focus */ /* focus */
bool focus_follow_mouse; bool focus_follow_mouse;
@ -39,6 +38,9 @@ struct rcxml {
/* libinput */ /* libinput */
struct wl_list libinput_categories; struct wl_list libinput_categories;
/* resistance */
int screen_edge_strength;
}; };
extern struct rcxml rc; extern struct rcxml rc;

View file

@ -322,7 +322,7 @@ entry(xmlNode *node, char *nodename, char *content)
rc.repeat_rate = atoi(content); rc.repeat_rate = atoi(content);
} else if (!strcasecmp(nodename, "repeatDelay.keyboard")) { } else if (!strcasecmp(nodename, "repeatDelay.keyboard")) {
rc.repeat_delay = atoi(content); rc.repeat_delay = atoi(content);
} else if (!strcasecmp(nodename, "screenEdgeStrength.core")) { } else if (!strcasecmp(nodename, "screenEdgeStrength.resistance")) {
rc.screen_edge_strength = atoi(content); rc.screen_edge_strength = atoi(content);
} }
} }