shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5c98f99ecd70f6775455c912c6380d836a04b843
parent e770f50d8f3a2dca798affa820b21d4907a5b341
Author: Lucas de Sena <lucas@seninha.org>
Date:   Wed, 12 Oct 2022 12:26:31 -0300

destroy database only when we have a database

Diffstat:
Mxdraw.c | 1-
Mxevents.c | 1+
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/xdraw.c b/xdraw.c @@ -786,7 +786,6 @@ setresources(char *xrm) char *type; XrmValue xval; - XrmDestroyDatabase(xdb); if (xrm == NULL || (xdb = XrmGetStringDatabase(xrm)) == NULL) return; diff --git a/xevents.c b/xevents.c @@ -1700,6 +1700,7 @@ xeventpropertynotify(XEvent *e) if (ev->window == root && ev->atom == XA_RESOURCE_MANAGER) { if (!XGetTextProperty(dpy, root, &prop, XA_RESOURCE_MANAGER)) return; + XrmDestroyDatabase(xdb); setresources(prop.value); XFree(prop.value); cleantheme();