Commit graph

8 commits

Author SHA1 Message Date
Bakkeby
b8056cbf24 xresources: destroy Xrm database after resource load
st would hold on to a XrmDatabase reference for the lifetime of the
program due to how in resource_load the ret.addr of the database
would be referenced directly. This also meant that for every reload
st would be leaking another XrmDatabase reference.

This has been partially worked around by applying a strdup to make
a copy of the string in order to allow for the XrmDatabase to be
freed / destroyed. Consequently the char arrays / strings still
leak on reload.

We could pass *sdst to free beforehand, but that will only work if
that reference is guaranteed to be on the heap.
2026-01-29 21:28:16 +01:00
Bakkeby
9328548866 xresources: removing focus change ttywrite ref. #182 2025-08-03 22:19:37 +02:00
step
499b7fbc19
XRESOURCES_RELOAD_PATCH reload fonts + re-render (#84)
This patch 1) improves reloading X resources - by considering fonts in
a way nearly identical to function `zoomabs`' - and 2) re-renders st so
that changed colors and fonts can be seen.
2022-09-24 10:40:33 +02:00
Bakkeby
9e0e419781 xresources reload: should close the display after being finished with the connection (if not then it can cause "Maximum amount of clients reached" errors after some time) 2022-07-28 15:48:40 +02:00
bakkeby
3e41e252b1 Adding background image reload patch ref. pull request #62 2022-04-11 16:04:58 +02:00
bakkeby
0fade9158a xresources reload: minor style changes ref. #16 2021-05-07 09:27:05 +02:00
Loic Coyle
540a923fb9 Add XRESOURCES_RELOAD_PATCH 2021-04-24 00:30:14 +02:00
bakkeby
4bd0ed3327 Adding xresources patch 2019-09-16 14:21:09 +02:00