mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
rc.xml: add <lab><keyboard><layout>
This commit is contained in:
parent
6166e9b370
commit
898d80e04f
3 changed files with 26 additions and 25 deletions
|
|
@ -56,8 +56,10 @@ static void entry(xmlNode *node, char *nodename, char *content)
|
|||
return;
|
||||
if (in_keybind)
|
||||
fill_keybind(node, nodename, content);
|
||||
if (!strcmp(nodename, "csd.wlroots"))
|
||||
if (!strcmp(nodename, "csd.lab"))
|
||||
rc.client_side_decorations = get_bool(content);
|
||||
if (!strcmp(nodename, "layout.keyboard.lab"))
|
||||
setenv("XKB_DEFAULT_LAYOUT", content, 1);
|
||||
}
|
||||
|
||||
static void keybind_begin(void)
|
||||
|
|
@ -81,10 +83,6 @@ static char *nodename(xmlNode *node, char *buf, int len)
|
|||
if (node->parent && !strcmp((char *)node->name, "text"))
|
||||
node = node->parent;
|
||||
|
||||
buf += len;
|
||||
*--buf = 0;
|
||||
len--;
|
||||
|
||||
char *p = buf;
|
||||
p[--len] = 0;
|
||||
for (;;) {
|
||||
|
|
@ -152,7 +150,6 @@ static void parse_xml(const char *filename)
|
|||
fprintf(stderr, "fatal: error reading file '%s'\n", filename);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
printf("info: reading config file '%s'\n", filename);
|
||||
xml_tree_walk(xmlDocGetRootElement(d));
|
||||
xmlFreeDoc(d);
|
||||
xmlCleanupParser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue