mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-24 16:05:47 +01:00
fix xresources matching
This commit is contained in:
parent
36d225d71d
commit
5d72a3e04b
1 changed files with 2 additions and 4 deletions
6
x.c
6
x.c
|
@ -2229,10 +2229,8 @@ resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst)
|
||||||
char *type;
|
char *type;
|
||||||
XrmValue ret;
|
XrmValue ret;
|
||||||
|
|
||||||
snprintf(fullname, sizeof(fullname), "%s.%s",
|
snprintf(fullname, sizeof(fullname), "%s.%s","st", name);
|
||||||
opt_name ? opt_name : "st", name);
|
snprintf(fullclass, sizeof(fullclass), "%s.%s", "St", name);
|
||||||
snprintf(fullclass, sizeof(fullclass), "%s.%s",
|
|
||||||
opt_class ? opt_class : "St", name);
|
|
||||||
fullname[sizeof(fullname) - 1] = fullclass[sizeof(fullclass) - 1] = '\0';
|
fullname[sizeof(fullname) - 1] = fullclass[sizeof(fullclass) - 1] = '\0';
|
||||||
|
|
||||||
XrmGetResource(db, fullname, fullclass, &type, &ret);
|
XrmGetResource(db, fullname, fullclass, &type, &ret);
|
||||||
|
|
Loading…
Reference in a new issue