mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
resistance: move to <resistance> node
This commit is contained in:
parent
ac58ab10a7
commit
8f8359597c
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue