fix xresources matching

This commit is contained in:
Fred Frey 2024-09-19 15:28:10 -04:00
parent 36d225d71d
commit 5d72a3e04b

6
x.c
View file

@ -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);