xresources reload: minor style changes ref. #16
This commit is contained in:
parent
eed2984b7f
commit
0fade9158a
|
@ -15,6 +15,8 @@ Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the
|
|||
|
||||
### Changelog:
|
||||
|
||||
2021-05-07 - Added xresources reload patch
|
||||
|
||||
2021-04-21 - Added (temporary?) hack for Variable Fonts (VT) support
|
||||
|
||||
2021-03-10 - Added sixel support
|
||||
|
|
|
@ -34,15 +34,13 @@ resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
#if XRESOURCES_RELOAD_PATCH
|
||||
void
|
||||
config_init(Display *dpy)
|
||||
{
|
||||
#else
|
||||
void
|
||||
config_init(void)
|
||||
{
|
||||
#endif // XRESOURCES_RELOAD_PATCH
|
||||
{
|
||||
char *resm;
|
||||
XrmDatabase db;
|
||||
ResourcePref *p;
|
||||
|
@ -62,7 +60,9 @@ config_init(void)
|
|||
}
|
||||
|
||||
#if XRESOURCES_RELOAD_PATCH
|
||||
void reload_config(int sig){
|
||||
void
|
||||
reload_config(int sig)
|
||||
{
|
||||
/* Recreate a Display object to have up to date Xresources entries */
|
||||
Display *dpy;
|
||||
if (!(dpy = XOpenDisplay(NULL)))
|
||||
|
|
|
@ -294,7 +294,7 @@
|
|||
#define XRESOURCES_PATCH 0
|
||||
|
||||
/* This patch adds the ability to reload the Xresources config when a SIGUSR1 signal is received
|
||||
e.g.: killall -USR1 st
|
||||
Depends on the XRESOURCES_PATCH.
|
||||
* e.g.: killall -USR1 st
|
||||
* Depends on the XRESOURCES_PATCH.
|
||||
*/
|
||||
#define XRESOURCES_RELOAD_PATCH 0
|
||||
|
|
Loading…
Reference in New Issue