mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
config: reuse mousebind_button_from_str()
This commit is contained in:
parent
4c59a8c3d7
commit
e51c3fc5d4
3 changed files with 1 additions and 16 deletions
|
|
@ -868,7 +868,7 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
button_map_from = tablet_button_from_str(content);
|
||||
} else if (!strcasecmp(nodename, "to.map.tablet")) {
|
||||
if (button_map_from != UINT32_MAX) {
|
||||
uint32_t button_map_to = mouse_button_from_str(content);
|
||||
uint32_t button_map_to = mousebind_button_from_str(content, NULL);
|
||||
if (button_map_to != UINT32_MAX) {
|
||||
tablet_button_mapping_add(button_map_from, button_map_to);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue